From bc2c36b92fa759c335fd660d38362ff7b4dadc6a Mon Sep 17 00:00:00 2001 From: purple_emily Date: Sun, 4 Feb 2024 12:23:48 +0000 Subject: [PATCH] Close the external PostgreSQL port --- docker-compose.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b9dfd4e..d2bfdd4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -39,8 +39,11 @@ services: - .env environment: PGUSER: postgres # needed for healthcheck. - ports: - - "5432:5432" + # # If you need the network to be accessible from outside, please open the below port. + # # Furthermore, please, please, please, change the username and password above. + # # If you want to enhance your security even more, create a new user for the database with a strong password. + # ports: + # - "5432:5432" volumes: - postgres:/var/lib/postgresql/data healthcheck: *postgresdb-health