From 725bc3792e3af415790a0baf3f7403ae89752fd9 Mon Sep 17 00:00:00 2001 From: jabacrack Date: Sat, 21 Jun 2025 16:46:30 +0300 Subject: [PATCH] fix: restrict database access from outside in docker compose installation (#18229) Co-authored-by: Atif Ali --- docker-compose.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 5f1a1c8b4779e..b5ab4cf0227ff 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -32,8 +32,9 @@ services: # Minimum supported version is 13. # More versions here: https://hub.docker.com/_/postgres image: "postgres:17" - ports: - - "5432:5432" + # Uncomment the next two lines to allow connections to the database from outside the server. + #ports: + # - "5432:5432" environment: POSTGRES_USER: ${POSTGRES_USER:-username} # The PostgreSQL user (useful to connect to the database) POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} # The PostgreSQL password (useful to connect to the database)