-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (55 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
57 lines (55 loc) · 1.25 KB
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:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: watm-dt-backend
restart: unless-stopped
volumes:
- ./data_parquet:/app/data_parquet:ro
- ./data:/app/data:ro
- ./config:/app/config:ro
- ./src:/app/src:ro
- ./scripts:/app/scripts:ro
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
networks:
- watm-network
deploy:
resources:
limits:
memory: 4G
reservations:
memory: 2G
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: watm-dt-frontend
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
backend:
condition: service_healthy
networks:
- watm-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
watm-network:
driver: bridge