fix: restrict database access from outside in docker compose installation (#18229)

Co-authored-by: Atif Ali <atif@coder.com>
This commit is contained in:
jabacrack
2025-06-21 18:46:30 +05:00
committed by GitHub
co-authored by Atif Ali
parent 738442b4d0
commit 725bc3792e
+3 -2
View File
@@ -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)