-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 967 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 967 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
39
40
41
42
43
version: '3.8'
services:
# Flask ML API
api:
build: .
container_name: predictops-api
ports:
- "5000:5000"
environment:
- FLASK_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 10s
timeout: 5s
retries: 3
networks:
- predictops
# Prometheus metrics collection
prometheus:
image: prom/prometheus:latest
container_name: predictops-prometheus
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./monitoring/prometheus/alerting_rules.yaml:/etc/prometheus/alerting_rules.yaml:ro
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
depends_on:
- api
networks:
- predictops
networks:
predictops:
driver: bridge
volumes:
prometheus_data: