Docker tout-en-un : journal PostgreSQL dans le dossier de la base (écriture refusée à la racine de /data)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
IliesAllaliandClaude Opus 5.5 committed 2026-10-09 17:46:58 +02:00
1 parent 91abe47614
commit cea8d1db8f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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"