Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdef571

Browse files
johnstcnmafredri
andauthored
docker-compose.yaml: Add POSTGRES_ environment variables to CODER_PG_CONNECTION_URL
Co-authored-by: Mathias Fredriksson <[email protected]>
1 parent e699ba1 commit bdef571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
ports:
66
- "7080:7080"
77
environment:
8-
CODER_PG_CONNECTION_URL: "postgresql://username:password@database/coder?sslmode=disable"
8+
CODER_PG_CONNECTION_URL: "postgresql://${POSTGRES_USER:-username}:${POSTGRES_PASSWORD:-password}@database/${POSTGRES_DB:-coder}?sslmode=disable"
99
CODER_ADDRESS: "0.0.0.0:7080"
1010
CODER_ACCESS_URL: "http://host.docker.internal:7080"
1111
volumes:

0 commit comments

Comments
 (0)