Skip to content

Commit 6654153

Browse files
authored
Merge pull request #73 from aboutcode-org/pg-conf
Apply custom config to postgres docker image
2 parents 648d6d8 + 8537603 commit 6654153

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ version: '3'
33
services:
44
db:
55
image: postgres:13
6+
command: -c config_file=/etc/postgresql/postgresql.conf
67
env_file:
78
- docker.env
89
volumes:
10+
- ./etc/postgresql/postgresql.conf:/etc/postgresql/postgresql.conf
911
- db_data:/var/lib/postgresql/data/
1012

1113
web:

etc/postgresql/postgresql.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Default postgresql.conf
2+
3+
listen_addresses = '*'
4+
max_connections = 100
5+
shared_buffers = 128MB
6+
dynamic_shared_memory_type = posix
7+
max_wal_size = 1GB
8+
min_wal_size = 80MB

0 commit comments

Comments
 (0)