Add traefik routing

This commit is contained in:
2024-12-23 14:38:43 +01:00
parent 5f90f28aef
commit cc1327c6fd

View File

@@ -17,7 +17,7 @@ services:
depends_on: depends_on:
- "guacd" - "guacd"
healthcheck: healthcheck:
test: "curl -f http://localhost:8080/ || exit 1" test: "curl -f http://localhost:8080/guacamole/ || exit 1"
environment: environment:
GUACD_HOSTNAME: "guacd" GUACD_HOSTNAME: "guacd"
GUACD_PORT: "4822" GUACD_PORT: "4822"
@@ -29,6 +29,15 @@ services:
- "10.0.0.1:8080:8080" - "10.0.0.1:8080:8080"
networks: networks:
guacamole: guacamole:
labels:
- "traefik.enable=true"
- "traefik.http.routers.guacamole.entrypoints=websecure"
- "traefik.http.routers.guacamole.rule=Host(`guacamole.unixyourbrain.org`)"
- "traefik.http.routers.guacamole.tls=true"
- "traefik.http.routers.guacamole.tls.certresolver=letsencrypt"
- "traefik.http.routers.guacamole.middlewares=authelia"
- "traefik.http.services.guacamole.loadbalancer.server.port=8080"
- "traefik.http.services.guacamole.loadbalancer.server.scheme=http"
networks: networks:
guacamole: guacamole: