forked from remijouannet/graftorio2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (31 loc) · 1.08 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
---
version: '3'
services:
exporter:
image: prom/node-exporter
command: --collector.disable-defaults --collector.textfile --collector.textfile.directory=/textfiles
volumes:
# - ~/Library/Application Support/factorio/script-output/graftorio2/:/textfiles # macOS
# - ${APPDATA}\Factorio\script-output\graftorio2:/textfiles # Windows
- ~/bin/factorio/script-output/graftorio2:/textfiles # Linux
ports:
- 9100
prometheus:
image: prom/prometheus
volumes:
- ./data/prometheus:/prometheus
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
grafana:
image: grafana/grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
- ./data/grafana:/var/lib/grafana
- ./config/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./config/grafana/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
- ./config/grafana/dashboards/:/var/lib/grafana/dashboards/
ports:
- 3000:3000