plc-mirror/metrics/docker-compose.yml

26 lines
651 B
YAML
Raw Normal View History

2024-02-18 16:37:50 +01:00
version: '3.8'
services:
prometheus:
image: prom/prometheus
# needed if mounted in custom volume
user: root
volumes:
- "./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml"
2024-02-18 16:37:50 +01:00
- "${PROMETHEUS_DATA_DIR:?specify data dir in .env file}:/prometheus"
2024-03-28 22:57:20 +01:00
restart: always
2024-02-18 16:37:50 +01:00
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 9090:9090
grafana:
build:
context: ./grafana
user: root
2024-03-28 22:57:20 +01:00
restart: always
2024-02-18 16:37:50 +01:00
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 9000:3000
volumes:
- ${GRAFANA_DATA_DIR:?specify data dir in .env file}:/var/lib/grafana