# project: na version: '3' services: traefik: image: traefik:v3.7.16 restart: unless-stopped volumes: - "./traefik.yml:/etc/traefik/traefik.yml" - "/var/run/docker.sock:/var/run/docker.sock" ports: - "80:80" - "8080:8080" networks: - tk_web tk-hosts: image: ghcr.io/zekker6/hosts-generator:v1.0.8 restart: unless-stopped volumes: - /etc/hosts:/hosts command: "-platform=linux -traefikUrl=http://traefik:8080/api -file=/hosts -watch=true -freq=10" networks: - tk_web depends_on: - traefik networks: tk_web: external: true