From cea8d1db8f70aab394edf37b4bcd7f20a657b4d9 Mon Sep 17 00:00:00 2001 From: IliesAllali Date: Fri, 9 Oct 2026 17:46:58 +0200 Subject: [PATCH] =?UTF-8?q?Docker=20tout-en-un=20:=20journal=20PostgreSQL?= =?UTF-8?q?=20dans=20le=20dossier=20de=20la=20base=20(=C3=A9criture=20refu?= =?UTF-8?q?s=C3=A9e=20=C3=A0=20la=20racine=20de=20/data)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 2 +- deploy/aio/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96efca6..81bc18b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -225,7 +225,7 @@ jobs: run: | docker ps -a docker logs --timestamps aio || true - docker exec aio cat /data/postgres.log || true + docker run --rm -v aio-data:/data busybox cat /data/postgres/postgres.log || true - name: ArrĂȘt et suppression du volume if: always() diff --git a/deploy/aio/entrypoint.sh b/deploy/aio/entrypoint.sh index f422077..88d740f 100755 --- a/deploy/aio/entrypoint.sh +++ b/deploy/aio/entrypoint.sh @@ -52,7 +52,7 @@ chmod 700 "$PGDATA" runuser -u postgres -- pg_ctl -D "$PGDATA" -w -t 60 \ -o "-c listen_addresses=127.0.0.1 -c unix_socket_directories=/run/postgresql" \ - -l "$DATA_DIR/postgres.log" start >/dev/null + -l "$PGDATA/postgres.log" start >/dev/null if [ "$FIRST_START" = 1 ]; then runuser -u postgres -- psql -q -v ON_ERROR_STOP=1 -c "CREATE ROLE $DB_USER LOGIN"