From 228149c0d8f6b37eb75cb1034e51e640fa1ce76d Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Mon, 16 Feb 2026 17:20:10 +0100 Subject: [PATCH] updated docker compose and update_website --- docker-compose.yml | 2 ++ update_website.sh | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index b442c2b..1ff8b79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,7 @@ services: - "traefik.enable=true" - "traefik.docker.network=narl" # Route /api, /admin, /static and /media traffic to the backend + - "traefik.http.routers.holy-backend.priority=20" - "traefik.http.routers.holy-backend.rule=Host(`holy.narl.io`) && (PathPrefix(`/api`) || PathPrefix(`/admin`) || PathPrefix(`/static`) || PathPrefix(`/media`))" - "traefik.http.routers.holy-backend.entrypoints=websecure" - "traefik.http.routers.holy-backend.tls.certresolver=https_resolver" @@ -42,6 +43,7 @@ services: labels: - "traefik.enable=true" - "traefik.docker.network=narl" + - "traefik.http.routers.holy-frontend.priority=10" - "traefik.http.routers.holy-frontend.rule=Host(`holy.narl.io`)" - "traefik.http.routers.holy-frontend.entrypoints=websecure" - "traefik.http.routers.holy-frontend.tls.certresolver=https_resolver" diff --git a/update_website.sh b/update_website.sh index c1d33e7..a2b5576 100755 --- a/update_website.sh +++ b/update_website.sh @@ -1,6 +1,10 @@ sudo docker compose down -git pull origin main +git stash +git checkout main +git pull +git checkout narl.io git merge main +git stash apply CONFLICTS=$(git ls-files -u | wc -l) if [ "$CONFLICTS" -gt 0 ] ; then echo "There are merge conflicts, resolve them and run `sudo docker compose up -d --build` or abort with `git merge --abort`"