From 16895afd472ad70f65fa354a7d7f750b70e75ed9 Mon Sep 17 00:00:00 2001 From: irrlicht Date: Fri, 30 Oct 2026 19:42:34 +0100 Subject: [PATCH] DEV: Postgres auf Host-Loopback erreichbar, backups/ ignoriert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .gitignore | 1 + dev-up.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 1ada474..608e0c5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,6 @@ original-kver.db __pycache__/ static/media/ prod_backup/ +backups/ frontend/node_modules/ /web/ diff --git a/dev-up.sh b/dev-up.sh index 0472a09..64499c5 100755 --- a/dev-up.sh +++ b/dev-up.sh @@ -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>&-