version: "3.9" services: reverse-proxy: image: traefik:v2.5 ports: - "80:80" - "443:443" environment: - "TZ=Asia/Shanghai" labels: - "traefik.enable=true" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - ./conf:/etc/traefik/config - ./acme.json:/etc/acme/acme.json - ./log:/var/log - ./traefik.yml:/etc/traefik/traefik.yml:ro networks: - traefik networks: traefik: external: true