From b15ce5450c3c26533930b47da8a3dd99fea93b9f Mon Sep 17 00:00:00 2001 From: Fanch Date: Mon, 8 Jul 2024 20:51:54 +0200 Subject: [PATCH] autoconfig web --- dockers/web/autoconfig.yml.dist | 4 ++++ dockers/web/build.sh | 10 ++++++++++ dockers/web/docker-compose.yml | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 dockers/web/autoconfig.yml.dist create mode 100755 dockers/web/build.sh diff --git a/dockers/web/autoconfig.yml.dist b/dockers/web/autoconfig.yml.dist new file mode 100644 index 0000000..906e3f4 --- /dev/null +++ b/dockers/web/autoconfig.yml.dist @@ -0,0 +1,4 @@ +services: + autoconfig: + labels: + - "traefik.http.routers.norig.rule=Host(`autoconfig.kaz.bzh`)" diff --git a/dockers/web/build.sh b/dockers/web/build.sh new file mode 100755 index 0000000..1fb4621 --- /dev/null +++ b/dockers/web/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +KAZ_ROOT=$(cd $(dirname $0)/../..; pwd) +. "${KAZ_ROOT}/bin/.commonFunctions.sh" +setKazVars + +cd $(dirname $0) +. "${DOCKERS_ENV}" + +cp autoconfig.yml.dist autoconfig.yml diff --git a/dockers/web/docker-compose.yml b/dockers/web/docker-compose.yml index e27c09f..159502d 100644 --- a/dockers/web/docker-compose.yml +++ b/dockers/web/docker-compose.yml @@ -6,6 +6,9 @@ services: restart: ${restartPolicy} # ports: # - 8080:80 + extends: + file: autoconfig.yml + service: autoconfig networks: - webNet volumes: