-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
38 lines (35 loc) · 903 Bytes
/
docker-compose.prod.yml
File metadata and controls
38 lines (35 loc) · 903 Bytes
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
# 生產環境配置 - 使用 ECR 映像
# 用法:docker compose -f docker-compose.prod.yml up -d
services:
api:
image: ${ECR_REGISTRY}/quantipy-api:${IMAGE_TAG:-latest}
container_name: quantipy-api
restart: unless-stopped
environment:
- PYTHONUNBUFFERED=1
expose:
- "8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
web:
image: ${ECR_REGISTRY}/quantipy-web:${IMAGE_TAG:-latest}
container_name: quantipy-web
restart: unless-stopped
expose:
- "3000"
depends_on:
- api
nginx:
image: ${ECR_REGISTRY}/quantipy-nginx:${IMAGE_TAG:-latest}
container_name: quantipy-nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web
- api