diff --git a/docker-compose.yml b/docker-compose.yml index 506c2a7..b61c9ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,9 +3,11 @@ version: '3' services: db: image: postgres:13 + command: -c config_file=/etc/postgresql/postgresql.conf env_file: - docker.env volumes: + - ./etc/postgresql/postgresql.conf:/etc/postgresql/postgresql.conf - db_data:/var/lib/postgresql/data/ web: diff --git a/etc/postgresql/postgresql.conf b/etc/postgresql/postgresql.conf new file mode 100644 index 0000000..2bf294d --- /dev/null +++ b/etc/postgresql/postgresql.conf @@ -0,0 +1,8 @@ +# Default postgresql.conf + +listen_addresses = '*' +max_connections = 100 +shared_buffers = 128MB +dynamic_shared_memory_type = posix +max_wal_size = 1GB +min_wal_size = 80MB