-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
43 lines (43 loc) · 1.32 KB
/
docker-compose.yml
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'
services:
covid19:
restart: always
build: .
ports:
- "8282:8282"
prometheus:
image: prom/prometheus:latest
restart: always
depends_on:
- covid19
command:
- "--web.external-url=http://localhost:9090/prometheus"
- "--config.file=/etc/prometheus/prometheus.yml"
- "--web.enable-admin-api"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=300d"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
grafana:
image: grafana/grafana:latest
restart: always
environment:
GF_SECURITY_ADMIN_PASSWORD: "admin"
GF_USERS_ALLOW_SIGN_UP: "false"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_NAME: "Main Org."
GF_AUTH_ANONYMOUS_ORG_ROLE: "Viewer"
GF_INSTALL_PLUGINS: "grafana-worldmap-panel,grafana-piechart-panel"
depends_on:
- prometheus
ports:
- "3000:3000"
volumes:
- ./config/datasource:/etc/grafana/provisioning/datasources
- ./config/dashboard:/etc/grafana/provisioning/dashboards
- ./data/grafana:/var/lib/grafana