Skip to content

Commit 17f8169

Browse files
jbgikderme
authored andcommitted
docker-compose: allow to pass along postgres args via $POSTGRES_ARGS
and use defaults that follows 13.1 release recommandations: `-c maintenance_work_mem=1GB -c max_parallel_maintenance_workers=4` Also bump to latest postgres 11 tag. Fix #1315.
1 parent c1140d4 commit 17f8169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.9"
22

33
services:
44
postgres:
5-
image: postgres:11.5-alpine
5+
image: postgres:11.18-alpine
66
environment:
77
- POSTGRES_LOGGING=true
88
- POSTGRES_DB_FILE=/run/secrets/postgres_db
@@ -24,6 +24,7 @@ services:
2424
interval: 10s
2525
timeout: 5s
2626
retries: 5
27+
command: ${POSTGRES_ARGS:--c maintenance_work_mem=1GB -c max_parallel_maintenance_workers=4}
2728
logging:
2829
driver: "json-file"
2930
options:

0 commit comments

Comments
 (0)