version: '3' services: reverse-proxy: # The official v2.0 Traefik docker image image: traefik:v2.5 container_name: "traefik" restart: unless-stopped networks: - backend - frontend ports: # The HTTP port - "80:80" - "443:443" # Influx - "8086:8086" # Mqtt - "9001:9001" - "8883:8883" volumes: # So that Traefik can listen to the Docker events - /var/run/docker.sock:/var/run/docker.sock - ./traefik.yml:/etc/traefik/traefik.yml - ./static_config.yml:/etc/traefik/static_config.yml # - "./log.json:/etc/traefik/log.json" #- ./acme.json:/acme.json - ./letsencrypt:/letsencrypt - ${DIR}/traefik/log:/log dns: - 8.8.8.8 networks: frontend: external: true backend: external: false