DEV: Postgres auf Host-Loopback erreichbar, backups/ ignoriert

Unter Podman 5 mit pasta zeigt host.containers.internal nicht auf das
Host-Loopback; ein nur auf 127.0.0.1 veröffentlichter Postgres-Container
war vom DEV-Container aus nicht erreichbar. --map-host-loopback leitet
169.254.1.2 dorthin um.

backups/ nimmt auf dem neuen DEV-System DB-Dump und Medien auf und enthält
echte Daten, gehört also nicht ins Repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 19:42:34 +01:00
co-authored by Claude Opus 5.5
parent 66b55676b0
commit 16895afd47
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -10,5 +10,6 @@ original-kver.db
__pycache__/
static/media/
prod_backup/
backups/
frontend/node_modules/
/web/
+3
View File
@@ -51,7 +51,10 @@ if [[ -d "$DATA/media" ]]; then
fi
podman rm -f "$NAME" >/dev/null 2>&1 9>&- || true
# pasta leitet host.containers.internal (169.254.1.2) sonst nicht auf das
# Host-Loopback, ein nur auf 127.0.0.1 lauschendes Postgres wäre unerreichbar.
podman run -d --name "$NAME" -p "127.0.0.1:$PORT:8080" \
--network 'pasta:--map-host-loopback,169.254.1.2' \
-e KVER_DSN="$DSN" \
"${mounts[@]}" \
--security-opt label=disable "$IMAGE" >/dev/null 9>&-