-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (84 loc) · 1.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (84 loc) · 1.97 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
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
services:
analyzer:
build:
context: .
dockerfile: Dockerfile
args:
PIP_TIMEOUT: 600
PIP_RETRIES: 10
BUILDKIT_INLINE_CACHE: 1
container_name: bugsigdb-analyzer
restart: unless-stopped
ports:
- "8000:8000"
environment:
- PYTHONPATH=/app
- DEBUG=true
- WATCHFILES_FORCE_POLLING=true
volumes:
# Mount source code for live reloading
- ./app:/app/app
- ./config:/app/config
- ./frontend:/app/frontend
# Data and cache volumes
- ./data:/app/data
- ./cache:/app/cache
- ./results:/app/results
- ./.env:/app/.env:ro
networks:
- bugsigdb-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
nginx:
build:
context: .
dockerfile: deployment/docker/nginx.Dockerfile
container_name: bugsigdb-analyzer-nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- nginx_logs:/var/log/nginx
- nginx_cache:/var/cache/nginx
- ./deployment/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./deployment/nginx/error_pages:/usr/share/nginx/html/error_pages:ro
depends_on:
analyzer:
condition: service_healthy
networks:
- bugsigdb-network
healthcheck:
test: ["CMD", "nginx", "-t"]
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:7-alpine
container_name: bugsigdb-analyzer-redis
restart: unless-stopped
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- bugsigdb-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
volumes:
nginx_logs:
nginx_cache:
redis_data:
networks:
bugsigdb-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16