version: '3.9' services: traefik: image: traefik:v3.1 container_name: traefik restart: unless-stopped security_opt: - no-new-privileges:true networks: - traefik_proxy ports: - 80:80 - 443:443 - 9882:8080 volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro - ./config/traefik.yml:/etc/traefik/traefik.yml:ro - ./config/dynamic_conf:/etc/traefik/dynamic_conf:ro - ./data/acme.json:/acme.json environment: - TRAEFIL_DASHBOARD_PASS=${TRAEFIK_DASHBOARD_PASS} labels: - traefik.enable=true - traefik.http.routers.dashboard.rule=Host(`traefik.scumwanker.club`) - traefik.http.routers.dashboard.service=api@internal - traefik.http.routers.dashboard.entrypoints=websecure - traefik.docker.network=traefik_proxy networks: traefik_proxy: external: true