Custom PostgreSQL conf with minimal settings

This commit is contained in:
Grzegorz Adam Kowalski 2019-03-15 19:20:59 +01:00
parent ad366e7c87
commit ab0f62d08d
2 changed files with 12 additions and 1 deletions

View File

@ -134,7 +134,10 @@ RUN ln -sf /proc/1/fd/1 /var/log/apache2/access.log \
&& ln -sf /proc/1/fd/2 /var/log/apache2/error.log
# Configure PosgtreSQL
RUN chown -R postgres:postgres /var/lib/postgresql
COPY postgresql.custom.conf /etc/postgresql/10/main/
RUN chown -R postgres:postgres /var/lib/postgresql \
&& chown postgres:postgres /etc/postgresql/10/main/postgresql.custom.conf \
&& echo "\ninclude 'postgresql.custom.conf'" >> /etc/postgresql/10/main/postgresql.conf
# Start running
COPY run.sh /

8
postgresql.custom.conf Normal file
View File

@ -0,0 +1,8 @@
# Suggested minimal settings from
# https://ircama.github.io/osm-carto-tutorials/tile-server-ubuntu/
shared_buffers = 128MB
min_wal_size = 1GB
max_wal_size = 2GB
work_mem = 32MB
maintenance_work_mem = 256MB