From 2258847e834a98e34d97cd05cc50b9e789f92625 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 9 Oct 2019 12:09:17 +0200 Subject: using environment variables for the hostname --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index de16af1..38f9b7f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.traefik.entrypoints=web" - - "traefik.http.routers.traefik.rule=Host(`traefik.docker.localhost`)" + - "traefik.http.routers.traefik.rule=Host(`traefik.${HOSTNAME}`)" - "traefik.http.services.traefik.loadbalancer.server.port=8080" networks: - circus @@ -32,7 +32,7 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.register.entrypoints=web" - - "traefik.http.routers.register.rule=Host(`register.docker.localhost`)" + - "traefik.http.routers.register.rule=Host(`register.${HOSTNAME}`)" - "traefik.http.services.register.loadbalancer.server.port=8081" networks: - circus -- cgit 1.4.1