-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
66 lines (58 loc) · 1.43 KB
/
docker-compose.yaml
File metadata and controls
66 lines (58 loc) · 1.43 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
# version: "3"
# services:
# flask_app_backend:
# image: flask
# command:
# ports:
# - 8000:8000
# restart: unless-stopped
# volumes:
# -
# -
# prometheus:
# image: prom/prometheus:latest
# ports:
# - "9090:9090"
# volumes:
# - ./config/prometheus.yaml:/etc/prometheus/prometheus.yml
# - prom_data:/prometheus
# restart: unless-stopped
# command:
# - "--config.file=/etc/prometheus/prometheus.yml"
# grafana:
# image: grafana/grafana:latest
# ports:
# - "3000:3000"
# volumes:
# restart: unless-stopped
# command: ""
# networks:
# monitoring_network:
# driver: bridge
# volumes:
# gefana_data: persistent volume
version: '3.7'
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- prometheus_data:/prometheus # Persistent volume for Prometheus data
- ./prometheus.yml:/etc/prometheus/prometheus.yml # Configuration file
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana_data:/var/lib/grafana # Persistent volume for Grafana data
volumes:
prometheus_data:
driver: local # Local storage for Prometheus
grafana_data:
driver: local # Local storage for Grafana