surf-hub/docker-compose.yaml
GeorgeWebberley 72accae032
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fixed env name mismatch
2026-01-27 20:34:19 +01:00

48 lines
1.2 KiB
YAML

services:
influxdb:
image: influxdb:2.7
container_name: influxdb
restart: always
networks:
- web_traffic
volumes:
- influxdb_data:/var/lib/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${DOCKER_INFLUXDB_INIT_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${DOCKER_INFLUXDB_INIT_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${DOCKER_INFLUXDB_INIT_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${DOCKER_INFLUXDB_INIT_BUCKET}
grafana:
image: grafana/grafana-oss:latest
container_name: grafana
restart: always
networks:
- web_traffic
depends_on:
- influxdb
volumes:
- grafana_data:/var/lib/grafana
fetcher:
image: git.georgew.dev/georgew/surf-hub-fetcher:latest
container_name: surf-fetcher
restart: always
networks:
- web_traffic
depends_on:
- influxdb
environment:
- INFLUX_URL=http://influxdb:8086
- INFLUX_TOKEN=${INFLUX_TOKEN}
- DOCKER_INFLUXDB_INIT_ORG=${DOCKER_INFLUXDB_INIT_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${DOCKER_INFLUXDB_INIT_BUCKET}
volumes:
influxdb_data:
grafana_data:
networks:
web_traffic:
external: true