version: '3.9' services: traefik: image: traefik:v3.0 container_name: traefik restart: unless-stopped security_opt: - no-new-privileges:true networks: - traefik ports: - "80:80" - "443:443" environment: - CF_API_EMAIL=${CF_API_EMAIL} - CF_API_KEY=${CF_API_KEY} volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro - ./traefik.yml:/etc/traefik/traefik.yml:ro - ./dynamic.yml:/etc/traefik/dynamic.yml:ro - ./letsencrypt:/letsencrypt - ./logs:/logs labels: - "traefik.enable=true" - "traefik.http.routers.dashboard.rule=Host(`traefik.hyperthrive.io`) || Host(`15.204.247.153`)" - "traefik.http.routers.dashboard.entrypoints=websecure,web" - "traefik.http.routers.dashboard.tls.certresolver=letsencrypt" - "traefik.http.routers.dashboard.service=api@internal" - "traefik.http.routers.dashboard.middlewares=auth" - "traefik.http.middlewares.auth.basicauth.users=admin:$$2y$$05$$pxTmyNXFWcL4fpqqxwWoRuX5549vaSuSJkLz6g/EZgoaoSkmgLw4W" networks: traefik: external: true