Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docker/sample-postgres-library/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM postgres:13

ENV POSTGRES_USER postgres
ENV POSTGRES_PASSWORD postgres

COPY /docker/sample-postgres-library/init /docker-entrypoint-initdb.d
RUN chmod u+x /docker-entrypoint-initdb.d/*.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "postgres" --dbname "postgres" <<-EOSQL
ALTER SYSTEM SET wal_level to logical;
EOSQL
Loading