version: '3.8'

networks:
  traefik-public:
    external: true
  smartcity-shared:
    external: true

services:
  telegraf-mqtt:
    container_name: smart-city-telegraf
    image: telegraf:1.28
    restart: unless-stopped
    volumes:
      - /home/eric/smart-city-digital-twin-martinique/telegraf.conf:/etc/telegraf/telegraf.conf:ro
    networks:
      - smartcity-shared
    # depends_on removed - InfluxDB is external
