services: authelia: image: authelia/authelia:latest container_name: authelia restart: always volumes: - ./config:/config environment: - DOMAIN=${DOMAIN} networks: - proxy-net labels: - "traefik.enable=true" # Public (HTTPS) - "traefik.http.routers.authelia.rule=Host(`auth.${DOMAIN}`)" - "traefik.http.routers.authelia.entrypoints=websecure" - "traefik.http.routers.authelia.tls=true" # Public (Redirect) - "traefik.http.routers.authelia-red.rule=Host(`auth.${DOMAIN}`)" - "traefik.http.routers.authelia-red.entrypoints=web" - "traefik.http.routers.authelia-red.middlewares=https-redirect@docker" networks: proxy-net: external: true