Public | Automated Build

Last pushed: 2 years ago
Short Description
Extended postgres:9.4 docker image with custom configuration.
Full Description

CUSTOM CONFIGURATION

config.sh

sed -i -f /var/local/postgres-edit.sed /var/lib/postgresql/data/postgresql.conf

sample postgres-edit.sed

s/^#listen_addresses =.$/listen_addresses = ''/
s/^#logging_collector = off.$/logging_collector = on/
s/^#log_directory = 'pg_log'.
$/log_directory = '\/var\/log\/postgresql'/
s/^#logfilename = 'postgresql-\%Y-\%m-\%d\%H\%M\%S.log'.$/log_filename = 'postgresql-\%Y-\%m-\%d.log'/
s/^#log_file_mode = 0600.
$/log_file_mode = 0777/
s/^#log_rotation_age = 1d.$/log_rotation_age = 1d/
s/^max_connections = 100.
$/max_connections = 1000/
s/^shared_buffers =.$/shared_buffers = 512MB/
s/^#effective_cache_size = .
$/effective_cache_size = 768MB/
s/^#work_mem = .$/work_mem = 4MB/
s/^#checkpoint_completion_target = .
$/checkpoint_completion_target = 0.6/

Docker Pull Command
Owner
supergramm
Source Repository