From 03dbac32a489d14a337bebdddd249a71dd81a9fb Mon Sep 17 00:00:00 2001 From: Fl_GUI Date: Sun, 13 Apr 2025 19:11:55 +0200 Subject: [PATCH] add traefik labels --- compose.yaml | 5 +++++ deploy.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 9626b14..64c7d48 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,4 +1,5 @@ version: '3' +name: yampl services: yampl: image: yampl @@ -14,3 +15,7 @@ services: - ./examples/toml/:/app/toml command: /app/toml/yampl.toml + labels: + - 'traefik.http.routers.yampl.rule=Host(`projects.openfl.eu`)' + - 'traefik.http.routers.yampl.service=yampl' + - 'traefik.http.services.yampl.loadbalancer.server.port=8080' diff --git a/deploy.sh b/deploy.sh index a9964bd..b7fc0d0 100755 --- a/deploy.sh +++ b/deploy.sh @@ -89,7 +89,7 @@ section="restart container" echoSection "" podman compose pull && \ podman compose down && \ -podman compose up -d +podman compose -p yampl up -d if [ $? -ne 0 ] ; then echoSection "failure" exit -4 -- 2.47.1