2021-01-09 20:40:51 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
grafana:
|
2023-01-12 10:03:26 +01:00
|
|
|
image: grafana/grafana:${GRAFANA_VERSION}
|
2021-01-09 20:40:51 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- "3000"
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- monitoring
|
|
|
|
labels:
|
|
|
|
- "docker.group=monitoring"
|
|
|
|
environment:
|
|
|
|
- GF_DEFAULT_INSTANCE_NAME=monitoring.${DOMAIN}
|
|
|
|
- GF_SERVER_ROOT_URL=http://monitoring.${DOMAIN}
|
|
|
|
- GF_SERVER_DOMAIN=monitoring.${DOMAIN}
|
|
|
|
- GF_SERVER_SERVE_FROM_SUB_PATH=true
|
|
|
|
- GF_SECURITY_DISABLE_GRAVATAR=true
|
|
|
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
|
|
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
|
|
|
|
- GF_DATABASE_TYPE=postgres
|
|
|
|
- GF_DATABASE_HOST=grafanadb:5432
|
|
|
|
- GF_DATABASE_SSL_MODE=disable
|
|
|
|
- GF_DATABASE_NAME=grafana
|
|
|
|
- GF_DATABASE_USER=${POSTGRES_USER}
|
|
|
|
- GF_DATABASE_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
- GF_INSTALL_PLUGINS=flant-statusmap-panel
|
|
|
|
depends_on:
|
|
|
|
- influxdb
|
|
|
|
- grafanadb
|
|
|
|
|
|
|
|
|
|
|
|
grafanadb:
|
2023-01-12 10:03:26 +01:00
|
|
|
image: postgres:${POSTGRES_VERSION}
|
2021-01-09 20:40:51 +01:00
|
|
|
volumes:
|
2024-02-09 13:48:18 +01:00
|
|
|
- ${VOLUMES_PATH}/monitoring/grafanadb:/var/lib/postgresql/data
|
2021-01-09 20:40:51 +01:00
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=grafana
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
labels:
|
|
|
|
- "docker.group=monitoring"
|
|
|
|
|
|
|
|
|
|
|
|
influxdb:
|
2023-01-12 10:03:26 +01:00
|
|
|
image: influxdb:${INFLUXDB_VERSION}
|
2021-01-09 20:40:51 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- monitoring
|
|
|
|
environment:
|
|
|
|
- INFLUXDB_MONITOR_STORE_ENABLED=false
|
|
|
|
volumes:
|
2024-02-09 13:48:18 +01:00
|
|
|
- ${VOLUMES_PATH}/monitoring/influxdb/:/var/lib/influxdb
|
2021-01-09 20:40:51 +01:00
|
|
|
- ${PWD}/influxdb.conf:/etc/influxdb/influxdb.conf:ro
|
|
|
|
labels:
|
|
|
|
- "docker.group=monitoring"
|
|
|
|
|
2023-02-20 11:45:44 +01:00
|
|
|
|
|
|
|
uptime-kuma:
|
|
|
|
image: louislam/uptime-kuma:1
|
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/monitoring/uptime-kuma-data:/app/data
|
2023-11-29 11:23:07 +01:00
|
|
|
networks:
|
2023-02-20 11:45:44 +01:00
|
|
|
- web
|
|
|
|
- dockersocket
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "docker.group=monitoring"
|
|
|
|
|
2021-01-09 20:40:51 +01:00
|
|
|
networks:
|
|
|
|
monitoring:
|
|
|
|
web:
|
|
|
|
external: true
|
2023-02-20 11:45:44 +01:00
|
|
|
dockersocket:
|
|
|
|
external: true
|