fix: add :Z to caddy data volume for permission handling

This commit is contained in:
Claus Lohmar 2026-07-10 21:58:43 +01:00
parent 5e3c75d564
commit 30b0b88660
2 changed files with 2 additions and 3 deletions

View file

@ -8,7 +8,7 @@ services:
- "443:443"
volumes:
- /opt/nextworkspace/config/caddy/:/etc/caddy/
- /opt/nextworkspace/data/caddy/:/data/
- /opt/nextworkspace/data/caddy/:/data/:Z
- /opt/nextworkspace/logs/caddy/:/var/log/caddy/
- /opt/nextworkspace/www/:/opt/nextworkspace/www/
healthcheck:

View file

@ -40,8 +40,7 @@ if [ "$GREENFIELD" = true ]; then
rm -f /etc/systemd/system/nextworkspace.service
systemctl daemon-reload
# Kill any lingering Caddy processes on port 80/443
pkill -f "caddy run" 2>/dev/null || true
fuser -k 80/tcp 443/tcp 2>/dev/null || true
pkill -f "caddy" 2>/dev/null || true
# Force clean ALL old pods, containers, and networks
for p in $(podman pod ls -q 2>/dev/null); do podman pod rm -f "$p" 2>/dev/null || true; done
podman rm -f caddy authelia launcher 2>/dev/null || true