10000 Close access to database from outside · coder/coder@7e0fcb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e0fcb6

Browse files
committed
Close access to database from outside
1 parent 5f7e5d7 commit 7e0fcb6

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:16"
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)
0