66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
version: '3'
|
|
services:
|
|
influxdb:
|
|
image: influxdb:2.0
|
|
container_name: influxdb
|
|
restart: unless-stopped
|
|
networks:
|
|
- monitoring
|
|
ports:
|
|
- 8086:8086
|
|
- 8089:8089/udp
|
|
volumes:
|
|
- ./influxdb.conf:/etc/influxdb/influxdb.conf:ro
|
|
- "${DOCKER_DATA}/influxdb:/var/lib/influxdb"
|
|
environment:
|
|
- TZ=America/Los_Angeles
|
|
- DOCKER_INFLUXDB_INIT_MODE=setup
|
|
- DOCKER_INFLUXDB_INIT_USERNAME=jafner
|
|
- DOCKER_INFLUXDB_INIT_PASSWORD=CX3UuhnNeTWy7GaD7MNsykWww76uJNuN
|
|
- "DOCKER_INFLUXDB_INIT_ORG=Jafner Industries"
|
|
- DOCKER_INFLUXDB_INIT_BUCKET=Bucket
|
|
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=35YMePC79Zz2ovM35xFtTi7odFMSrZsf
|
|
|
|
telegraf:
|
|
image: telegraf:latest
|
|
container_name: telegraf
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- influxdb
|
|
networks:
|
|
- monitoring
|
|
volumes:
|
|
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
|
- ./scripts/.forgetps.json:/.forgetps.json:ro
|
|
- /sys:/rootfs/sys:ro
|
|
- /proc:/rootfs/proc:ro
|
|
- /etc:/rootfs/etc:ro
|
|
|
|
grafana:
|
|
image: mbarmem/grafana-render:latest
|
|
container_name: grafana
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- influxdb
|
|
- telegraf
|
|
networks:
|
|
- monitoring
|
|
- web
|
|
user: "0"
|
|
volumes:
|
|
- ${DOCKER_DATA}/grafana:/var/lib/grafana
|
|
- ./grafana.ini:/etc/grafana/grafana.ini
|
|
environment:
|
|
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource,grafana-worldmap-panel,grafana-piechart-panel
|
|
labels:
|
|
- traefik.http.routers.grafana.rule=Host(`grafana.jafner.net`)
|
|
- traefik.http.routers.grafana.tls.certresolver=lets-encrypt
|
|
#- traefik.http.routers.grafana.middlewares=authelia@file
|
|
|
|
networks:
|
|
monitoring:
|
|
external: true
|
|
web:
|
|
external: true
|
|
|