about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-09 12:09:17 +0200
committerEmile <hanemile@protonmail.com>2019-10-09 12:09:17 +0200
commit2258847e834a98e34d97cd05cc50b9e789f92625 (patch)
tree1d479f450e30291acaa2a2f6bef69aa3946ba4d1
parent6f53974d4203e9798b7cd652f826eaf2bdcffc2d (diff)
using environment variables for the hostname
-rw-r--r--docker-compose.yml4
1 files 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