Skip to content

Commit 1daff49

Browse files
committed
Docker: Expose postgres container only on 127.0.0.1
Docker by default exposes ports on 0.0.0.0
1 parent 7876a34 commit 1daff49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
POSTGRES_USER: postgres
3232
POSTGRES_PASSWORD: password
3333
ports:
34-
- 5432:5432
34+
- 127.0.0.1:5432:5432
3535
volumes:
3636
- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
3737
- postgres-data:/var/lib/postgresql/data

0 commit comments

Comments
 (0)