feat: add environment variable support and update README instructions

This commit is contained in:
2025-02-05 16:16:57 +01:00
parent 6a7d4e922b
commit fb765920b4
7 changed files with 38 additions and 10 deletions

View File

@@ -21,6 +21,10 @@ services:
image: telegraf:1.33.1
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
environment:
- DATABASE=${TELEGRAF_MONGODB_DATABASE:?"Database name is required"}
- DSN=${TELEGRAF_MONGODB_DSN:?"DSN is required"}
- HOSTNAME=${TELEGRAF_HOSTNAME:?"Hostname is required"}
networks:
- backend
@@ -34,6 +38,8 @@ services:
condition: service_healthy
telegraf:
condition: service_started
environment:
- VIDEO_URL=${VIDEO_URL:?"Video URL is required"}
networks:
- backend