services: traefik: build: . network_mode: host volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - certs:/etc/certs/ - /tmp:/tmp environment: - CF_API_EMAIL=${CF_API_EMAIL} - CF_DNS_API_TOKEN=${CF_DNS_API_TOKEN} labels: traefik.host: _ traefik.http.services.dashboard.loadbalancer.server.port: 0 traefik.http.routers.api.rule: Host(`traefik-cpu.wzray.com`) traefik.http.routers.api.service: api@internal restart: unless-stopped volumes: certs: