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 - .env
environment: environment:
PGUSER: postgres # needed for healthcheck. PGUSER: postgres # needed for healthcheck.
ports: # # If you need the network to be accessible from outside, please open the below port.
- "5432:5432" # # 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: volumes:
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
healthcheck: *postgresdb-health healthcheck: *postgresdb-health