Skip to content

Commit 725bc37

Browse files
jabacrackmatifali
andauthored
fix: restrict database access from outside in docker compose installation (#18229)
Co-authored-by: Atif Ali <atif@coder.com>
1 parent 738442b commit 725bc37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ services:
3232
# Minimum supported version is 13.
3333
# More versions here: https://hub.docker.com/_/postgres
3434
image: "postgres:17"
35-
ports:
36-
- "5432:5432"
35+
# Uncomment the next two lines to allow connections to the database from outside the server.
36+
#ports:
37+
# - "5432:5432"
3738
environment:
3839
POSTGRES_USER: ${POSTGRES_USER:-username} # The PostgreSQL user (useful to connect to the database)
3940
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} # The PostgreSQL password (useful to connect to the database)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy