-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
81 lines (76 loc) · 1.69 KB
/
docker-compose.prod.yml
File metadata and controls
81 lines (76 loc) · 1.69 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
version: '3.8'
services:
# Basic Fraud Detection API
fraud-api-basic:
build:
context: .
dockerfile: Dockerfile.basic
ports:
- "8000:8000"
environment:
- ENVIRONMENT=production
- LOG_LEVEL=INFO
volumes:
- ./models:/app/models
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
# Advanced Fraud Detection API
fraud-api-advanced:
build:
context: .
dockerfile: Dockerfile.advanced
ports:
- "8001:8001"
environment:
- ENVIRONMENT=production
- LOG_LEVEL=INFO
volumes:
- ./models:/app/models
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
# Monitoring Dashboard
monitoring-dashboard:
build:
context: .
dockerfile: Dockerfile.monitoring
ports:
- "8002:8002"
environment:
- ENVIRONMENT=production
- LOG_LEVEL=INFO
depends_on:
- fraud-api-basic
- fraud-api-advanced
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8002/health"]
interval: 30s
timeout: 10s
retries: 3
# Nginx Load Balancer
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/nginx/ssl
depends_on:
- fraud-api-basic
- fraud-api-advanced
- monitoring-dashboard
restart: unless-stopped
volumes:
models:
logs: