Close the external PostgreSQL port

This commit is contained in:
purple_emily
2024-02-04 12:23:48 +00:00
committed by iPromKnight
parent 875d79b44d
commit bc2c36b92f

View File

@@ -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