meshtastic-metrics-exporter/docker-compose.yml

60 lines
1.3 KiB
YAML
Raw Normal View History

2024-06-24 11:44:10 -07:00
volumes:
prometheus_data:
grafana_data:
postgres_data:
2024-06-24 11:44:10 -07:00
services:
prometheus:
image: prom/prometheus:v2.51.2
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "9090:9090"
2024-06-24 11:44:10 -07:00
networks:
- mesh-bridge
volumes:
- prometheus_data:/prometheus
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
2024-06-24 11:44:10 -07:00
grafana:
build:
context: .
dockerfile: ./docker/grafana/Dockerfile.grafana
2024-06-24 11:44:10 -07:00
restart: unless-stopped
ports:
- "3000:3000"
networks:
- mesh-bridge
volumes:
- grafana_data:/var/lib/grafana
- ./docker/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
2024-06-24 11:44:10 -07:00
exporter:
build:
context: .
dockerfile: ./docker/exporter/Dockerfile.exporter
2024-06-24 11:44:10 -07:00
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
networks:
- mesh-bridge
postgres:
image: postgres:13.3
2024-06-24 11:44:10 -07:00
restart: unless-stopped
networks:
- mesh-bridge
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "meshtastic"
2024-06-24 11:44:10 -07:00
networks:
mesh-bridge:
driver: bridge