mirror of
https://github.com/coder/coder.git
synced 2026-09-21 12:44:32 +08:00
fix: restrict database access from outside in docker compose installation (#18229)
Co-authored-by: Atif Ali <atif@coder.com>
This commit is contained in:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user