-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
10 lines (9 loc) · 779 Bytes
/
Copy pathDockerfile
File metadata and controls
10 lines (9 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
FROM postgres:11
MAINTAINER Alexandre Marre <me@itsalex.fr>
RUN apt update && apt -y install curl ca-certificates postgresql-11-pglogical && \
echo "host replication postgres 172.18.0.0/16 trust" >> /usr/share/postgresql/11/pg_hba.conf.sample && \
echo "host replication postgres ::1/128 trust" >> /usr/share/postgresql/11/pg_hba.conf.sample && \
echo "shared_preload_libraries = 'pglogical'" >> /usr/share/postgresql/postgresql.conf.sample && \
echo "wal_level = 'logical'" >> /usr/share/postgresql/postgresql.conf.sample && \
echo "max_wal_senders = 20" >> /usr/share/postgresql/postgresql.conf.sample && \
echo "max_replication_slots = 20" >> /usr/share/postgresql/postgresql.conf.sample