-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (44 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
52 lines (44 loc) · 1.11 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
version: "3.5"
volumes:
prometheus_data: {}
grafana_data: {}
alerta_db: {}
networks:
cosmos-monitoring:
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- type: volume
source: prometheus_data
target: /prometheus
- type: bind
source: ./prometheus
target: /etc/prometheus
read_only: true
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.enable-lifecycle'
ports:
- 9090:9090
networks:
- cosmos-monitoring
restart: always
# default login credentials: admin/admin
grafana:
image: grafana/grafana:latest
env_file: ./grafana/grafana.conf
container_name: grafana
volumes:
- type: volume
source: grafana_data
target: /var/lib/grafana
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards
ports:
- 9999:3000
networks:
- cosmos-monitoring
restart: always