Created
March 20, 2017 14:16
-
-
Save victorjtfranco/9e9371e835e1bb3def03a3d13044b572 to your computer and use it in GitHub Desktop.
Extending Postgres Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "include '/postgresql-extend.conf'" >> $PGDATA/postgresql.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:9.4 | |
MAINTAINER Victor Franco "victorjtfranco@users.noreply.github.com" | |
COPY add-config.sh /docker-entrypoint-initdb.d/ | |
COPY postgresql-extend.conf / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wal_level = 'logical' | |
max_worker_processes = 10 # one per database needed on provider node | |
# one per node needed on subscriber node | |
max_replication_slots = 10 # one per node needed on provider node | |
max_wal_senders = 10 # one per node needed on provider node |
It is enough to add RUN echo -e "\n\ninclude '/postgresql-extend.conf'" >> /usr/share/postgresql/postgresql.conf.sample
to Dockerfile thanks to docker-library/postgres#127
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referenced at docker-library/postgres#105 (comment)