diff --git a/docker-compose.yml b/docker-compose.yml index 29e0b2a..e465481 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,11 +6,18 @@ services: dockerfile: Dockerfile labels: - "traefik.enable=true" - - "traefik.http.routers.betterbahn.entrypoints=websecure" - - "traefik.http.routers.betterbahn.rule=Host(`${PUBLIC_DOMAIN}`)" - - "traefik.http.routers.betterbahn.tls=true" - - "traefik.http.routers.betterbahn.tls.certresolver=hetzner" - - "traefik.http.routers.betterbahn.tls.domains[0].main=${TLS_DOMAIN}" - - "traefik.http.routers.betterbahn.middlewares=secHeaders@file, autodetectContenttype@file, authentikProd@file" - - "traefik.http.services.betterbahn.loadbalancer.server.port=3000" # set port the container listenes to - - "traefik.http.services.betterbahn.loadbalancer.server.scheme=http" \ No newline at end of file + - "traefik.docker.network=dokploy-network" + - "traefik.http.routers.betterbahn-app-web.rule=Host(`${PUBLIC_DOMAIN}`)" + - "traefik.http.routers.betterbahn-app-web.entrypoints=web" + - "traefik.http.services.betterbahn-app-web.loadbalancer.server.port=3000" + - "traefik.http.routers.betterbahn-app-web.service=betterbahn-app-web" + - "traefik.http.routers.betterbahn-app-web.middlewares=redirect-to-https@file" + - "traefik.http.routers.betterbahn-app-websecure.entrypoints=websecure" + - "traefik.http.routers.betterbahn-app-websecure.rule=Host(`${PUBLIC_DOMAIN}`)" + - "traefik.http.routers.betterbahn-app-websecure.tls=true" + - "traefik.http.routers.betterbahn-app-websecure.tls.certresolver=hetzner" + - "traefik.http.routers.betterbahn-app-websecure.tls.domains[0].main=${TLS_DOMAIN}" + - "traefik.http.routers.betterbahn-app-websecure.middlewares=secHeaders@file, autodetectContenttype@file, authentikProd@file" + - "traefik.http.routers.betterbahn-app-websecure.service=betterbahn-app-websecure" + - "traefik.http.services.betterbahn-app-websecure.loadbalancer.server.port=3000" # set port the container listenes to + - "traefik.http.services.betterbahn-app-websecure.loadbalancer.server.scheme=http"