-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
64 lines (59 loc) · 1.36 KB
/
docker-compose.prod.yml
File metadata and controls
64 lines (59 loc) · 1.36 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
version: '3.8'
services:
# PixIntelligence Application
pixintelligence:
build:
context: .
dockerfile: Dockerfile
container_name: pixintelligence-app
image: pixintelligence:latest
expose:
- "8000"
volumes:
- pixintel-data:/app/src/data
- pixintel-output:/app/output
- pixintel-logs:/app/logs
environment:
- PIXINTELLIGENCE_HOST=0.0.0.0
- PIXINTELLIGENCE_PORT=8000
- PYTHONUNBUFFERED=1
restart: always
networks:
- pixintel-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Nginx Reverse Proxy
nginx:
image: nginx:alpine
container_name: pixintelligence-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
- pixintel-logs:/var/log/nginx
depends_on:
- pixintelligence
restart: always
networks:
- pixintel-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
networks:
pixintel-network:
driver: bridge
volumes:
pixintel-data:
driver: local
pixintel-output:
driver: local
pixintel-logs:
driver: local