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:
@@ -10,5 +10,6 @@ original-kver.db
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
static/media/
|
static/media/
|
||||||
prod_backup/
|
prod_backup/
|
||||||
|
backups/
|
||||||
frontend/node_modules/
|
frontend/node_modules/
|
||||||
/web/
|
/web/
|
||||||
|
|||||||
@@ -51,7 +51,10 @@ if [[ -d "$DATA/media" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
podman rm -f "$NAME" >/dev/null 2>&1 9>&- || true
|
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" \
|
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" \
|
-e KVER_DSN="$DSN" \
|
||||||
"${mounts[@]}" \
|
"${mounts[@]}" \
|
||||||
--security-opt label=disable "$IMAGE" >/dev/null 9>&-
|
--security-opt label=disable "$IMAGE" >/dev/null 9>&-
|
||||||
|
|||||||
Reference in New Issue
Block a user