From 7e0fcb618596358157aa908dd5c5ad82b1533b7d Mon Sep 17 00:00:00 2001 From: jabacrack Date: Wed, 4 Jun 2025 16:22:37 +0300 Subject: [PATCH] Close access to database from outside --- docker-compose.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d7d5c3ad6fbb1..3666c9a867256 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:16" - 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)