2024-06-24 11:44:10 -07:00
|
|
|
volumes:
|
|
|
|
prometheus_data:
|
|
|
|
grafana_data:
|
2024-06-28 09:50:19 -07:00
|
|
|
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"
|
2024-06-28 03:59:15 -07:00
|
|
|
ports:
|
|
|
|
- "9090:9090"
|
2024-06-24 11:44:10 -07:00
|
|
|
networks:
|
|
|
|
- mesh-bridge
|
|
|
|
volumes:
|
|
|
|
- prometheus_data:/prometheus
|
2024-06-26 01:20:46 -07:00
|
|
|
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
2024-06-24 11:44:10 -07:00
|
|
|
|
|
|
|
grafana:
|
2024-06-26 01:20:46 -07:00
|
|
|
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
|
2024-07-07 07:44:11 -07:00
|
|
|
- ./docker/grafana/provisioning:/etc/grafana/provisioning
|
2024-06-24 11:44:10 -07:00
|
|
|
|
|
|
|
exporter:
|
2024-06-26 01:20:46 -07:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/exporter/Dockerfile.exporter
|
2024-06-24 11:44:10 -07:00
|
|
|
restart: unless-stopped
|
2024-08-09 03:29:46 -07:00
|
|
|
depends_on:
|
|
|
|
- prometheus
|
|
|
|
- postgres
|
2024-06-24 11:44:10 -07:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
networks:
|
|
|
|
- mesh-bridge
|
|
|
|
|
2024-06-28 09:50:19 -07:00
|
|
|
postgres:
|
2024-07-26 03:00:59 -07:00
|
|
|
image: postgres:16.3
|
2024-06-24 11:44:10 -07:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- mesh-bridge
|
|
|
|
volumes:
|
2024-06-28 09:50:19 -07:00
|
|
|
- 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
|