Skip to content

Commit 406f4be

Browse files
committed
fix(docker): bind debug postgres to all interfaces
The debug image builds postgres from source, which uses the upstream postgresql.conf.sample where listen_addresses defaults to localhost. The Debian-packaged postgres in the release image patches the sample to '*', so this only bites the debug compose target — host psql can't reach the container after a fresh volume init. Pass `-c listen_addresses=*` via the compose command override so the fix is applied on every fresh initdb without rebuilding the image.
1 parent ff022d5 commit 406f4be

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docker/postgresql/docker-compose.debug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
context: ../..
55
dockerfile: docker/postgresql/Dockerfile.debug-no-optimization
66
container_name: cloudsync-postgres
7+
command: postgres -c listen_addresses=*
78
environment:
89
POSTGRES_USER: postgres
910
POSTGRES_PASSWORD: postgres

0 commit comments

Comments
 (0)