add host ports

This commit is contained in:
holzi1005 2024-12-07 23:18:06 +01:00
parent 6ee670e371
commit f0558471df

View file

@ -5,14 +5,14 @@ services:
image: "traefik:v2.5"
command:
#- "--log.level=DEBUG"
# - "--api.insecure=false"
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
#- "--api.dashboard=true"
- "--api.dashboard=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.unsecure.address=:80"
- "--entrypoints.web.address=:80"
# Global HTTPS
# - "--entrypoints.web.address=:443"
# - "--entrypoints.unsecure.http.redirections.entryPoint.to=web"
@ -63,14 +63,16 @@ services:
laF_version: 3.0.4
labels:
- "traefik.enable=true"
- "traefik.http.routers.app-odc.tls=true"
#- "traefik.http.routers.app-odc.tls=true"
- "traefik.http.routers.app-odc.rule=Host(`<clientUrl>`)"
- "traefik.http.routers.app-odc.entrypoints=web"
- "traefik.http.services.app-odc.loadbalancer.server.port=8080"
- "traefik.http.routers.app-odc.tls.certresolver=letsencrypt"
#- "traefik.http.routers.app-odc.tls.certresolver=letsencrypt"
- "traefik.http.services.app-odc.loadbalancer.sticky=true"
- "traefik.http.services.app-odc.loadbalancer.sticky.cookie.name=odc"
- "traefik.http.services.app-odc.loadbalancer.sticky.cookie.secure=true"
ports:
- "8080:8080"
volumes:
- datenschutzcenter_uploads:/var/www/html/public/uploads:rw
- datenschutzcenter_secret_storage:/var/www/html/secretStorage:rw
@ -107,7 +109,8 @@ services:
KC_HOSTNAME_ADMIN_URL: <httpMethod>://<clientUrl>/keycloak
KC_HTTP_RELATIVE_PATH: /keycloak
KC_PROXY: passthrough
ports:
- "8081:8080"
command:
- start-dev
- --import-realm