-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1.19 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
db:
image: postgres:17.1-alpine
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 30s
retries: 3
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
logging:
options:
max-size: "10m"
max-file: "3"
ports:
- "127.0.0.1:5432:5432"
volumes:
- db:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
restart: always
tty: true
ulimits:
nofile:
soft: 65536
hard: 65536
nproc: 65536
healthcheck:
test: ["CMD", "curl", "-f", "https://eclipse.skinsrestorer.net/health"]
interval: 10s
timeout: 30s
retries: 3
network_mode: host
env_file:
- .env
environment:
- JDBC_DATABASE_HOST=127.0.0.1
- JDBC_DATABASE_PORT=5432
- JDBC_DATABASE_NAME=postgres
- JDBC_DATABASE_USERNAME=postgres
- JDBC_DATABASE_PASSWORD=postgres
- SERVER_PORT=8080
logging:
options:
max-size: "10m"
max-file: "3"
depends_on:
db:
condition: service_healthy
volumes:
db:
driver: local