We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e117e commit 22a0552Copy full SHA for 22a0552
docker-compose.yml
@@ -13,11 +13,11 @@ services:
13
image: postgres:latest
14
restart: unless-stopped
15
environment:
16
- POSTGRES_DB: ${DATABASE_NAME}
17
- POSTGRES_USER: ${DATABASE_USERNAME}
18
- POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
+ POSTGRES_DB: ${DATABASE_NAME:-postgres}
+ POSTGRES_USER: ${DATABASE_USERNAME:-postgres}
+ POSTGRES_PASSWORD: ${DATABASE_PASSWORD:-password}
19
ports:
20
- - "${DATABASE_PORT}:5432"
+ - "${DATABASE_PORT:-5432}:5432"
21
volumes:
22
- pgdata:/var/lib/postgresql/data
23
healthcheck:
0 commit comments