-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yaml
51 lines (47 loc) · 1.13 KB
/
docker-compose.prod.yaml
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
services:
redis:
image: redis:latest
volumes:
- redis_data:/data
nginx:
image: nginx:1.27.0
ports:
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- /etc/letsencrypt/live/chat.gosuwachu.fyi/privkey.pem:/etc/letsencrypt/live/chat.gosuwachu.fyi/privkey.pem
- /etc/letsencrypt/live/chat.gosuwachu.fyi/fullchain.pem:/etc/letsencrypt/live/chat.gosuwachu.fyi/fullchain.pem
depends_on:
- api_gateway
- websocket_server
- redis
api_gateway:
build:
context: .
environment:
- VENV_DIR=.venv.docker
volumes:
- .:/app
command: /app/run_api_gateway_prod
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "8080"]
interval: 1s
timeout: 2s
retries: 3
start_period: 1m
websocket_server:
build:
context: .
environment:
- VENV_DIR=.venv.docker
volumes:
- .:/app
command: /app/run_websocket_server
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "6789"]
interval: 1s
timeout: 2s
retries: 3
start_period: 1m
volumes:
redis_data: