From cc1327c6fd24bf5c8e535b3fdf29335426f6151c Mon Sep 17 00:00:00 2001 From: SALVIJER Date: Mon, 23 Dec 2024 14:38:43 +0100 Subject: [PATCH] Add traefik routing --- docker-compose.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index bcf3ff8..138b27a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: depends_on: - "guacd" healthcheck: - test: "curl -f http://localhost:8080/ || exit 1" + test: "curl -f http://localhost:8080/guacamole/ || exit 1" environment: GUACD_HOSTNAME: "guacd" GUACD_PORT: "4822" @@ -29,6 +29,15 @@ services: - "10.0.0.1:8080:8080" networks: 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: guacamole: