]> git.openfl.eu Git - yampl.git/commitdiff
add traefik labels
authorFl_GUI <flor.guilini@hotmail.com>
Sun, 13 Apr 2025 17:11:55 +0000 (19:11 +0200)
committerFl_GUI <flor.guilini@hotmail.com>
Sun, 13 Apr 2025 17:11:55 +0000 (19:11 +0200)
compose.yaml
deploy.sh

index 9626b14b0dac2cfa49705d77b63556bfd88e2411..64c7d48ed0dbbc77293343cbef456a7766aa3ca4 100644 (file)
@@ -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'
index a9964bdabc09442303c49ea23b8635f44eb9e252..b7fc0d0396b9233a887ed2f07b5688009aa3279f 100755 (executable)
--- 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