diff --git a/modules/mistborn-cli b/modules/mistborn-cli index 00986bc..35e2d02 160000 --- a/modules/mistborn-cli +++ b/modules/mistborn-cli @@ -1 +1 @@ -Subproject commit 00986bcb7f945c611d13099672b4fb1e2d0721f2 +Subproject commit 35e2d0256d727de2d0fd3e57198d1cd54d238813 diff --git a/scripts/wrappers/mistborn_docker.sh b/scripts/wrappers/mistborn_docker.sh index 781eaa6..23c7480 100755 --- a/scripts/wrappers/mistborn_docker.sh +++ b/scripts/wrappers/mistborn_docker.sh @@ -24,6 +24,21 @@ else fi set +a +# call traefik-extra +if [[ ! -z "MISTBORN_SERVICE_NAME" ]] && \ + [[ ! -z "MISTBORN_SERVICE_DOMAIN" ]] && \ + [[ ! -z "MISTBORN_SERVICE_PORT" ]]; then + + echo "Populating traefik routes" + + mistborn-cli traefik-extra \ + --domain-name $MISTBORN_SERVICE_DOMAIN \ + --service-name $MISTBORN_SERVICE_NAME \ + --web-port $MISTBORN_SERVICE_PORT +else + echo "Not populating traefik routes" +fi + # init script if [[ -f "${MISTBORN_SERVICE_INIT}" ]]; then echo "Running init script"