-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
91 lines (84 loc) · 1.93 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
# nginx-proxy:
# image: nginxproxy/nginx-proxy
# container_name: nginx-proxy
# restart: unless-stopped
# ports:
# - '80:80'
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock:ro
db:
image: postgres:16
container_name: arcsecond-db
restart: unless-stopped
environment:
POSTGRES_DB: ${APP_DB_NAME}
POSTGRES_USER: ${APP_DB_USER}
POSTGRES_PASSWORD: ${APP_DB_PASS}
ports:
- "5432:5432"
volumes:
- arcsecond_postgres_data:/var/lib/postgresql/data
env_file:
- .env
broker:
image: redis:7.4
container_name: arcsecond-broker
restart: unless-stopped
ports:
- "6379:6379"
backend:
image: arcsecond-api:latest
container_name: arcsecond-api
restart: unless-stopped
entrypoint: /home/app/entrypoint-server.sh
ports:
- "8000:8000"
depends_on:
- db
- broker
# environment:
# - VIRTUAL_HOST=api.arcsecond.ground
# - VIRTUAL_PORT=8000
env_file:
- .env
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/healthcheck/" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
worker:
image: arcsecond-api:latest
container_name: arcsecond-worker
restart: unless-stopped
entrypoint: /home/app/entrypoint-worker.sh
depends_on:
db:
condition: service_started
broker:
condition: service_started
env_file:
- .env
beat:
image: arcsecond-api:latest
container_name: arcsecond-beat
restart: unless-stopped
entrypoint: /home/app/entrypoint-beat.sh
depends_on:
db:
condition: service_started
broker:
condition: service_started
env_file:
- ./.env
web:
image: arcsecond-web:latest
container_name: arcsecond-web
restart: unless-stopped
depends_on:
- backend
expose:
- "80:80"
volumes:
arcsecond_postgres_data: