mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-11 16:12:14 +00:00
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:
1 parent
91abe47614
commit
cea8d1db8f
2 files changed
+2
-2
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user