Custom PostgreSQL conf with minimal settings
This commit is contained in:
parent
ad366e7c87
commit
ab0f62d08d
@ -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
|
&& ln -sf /proc/1/fd/2 /var/log/apache2/error.log
|
||||||
|
|
||||||
# Configure PosgtreSQL
|
# 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
|
# Start running
|
||||||
COPY run.sh /
|
COPY run.sh /
|
||||||
|
8
postgresql.custom.conf
Normal file
8
postgresql.custom.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user