Skip to content

Commit 1a4e5ac

Browse files
committed
fix(docker): update environment variable for PostgreSQL username in db.yaml
- Changed environment variable from DATABASE_USER to DATABASE_USERNAME for consistency with naming conventions. - Updated healthcheck command to reflect the new environment variable name.
1 parent 8865edb commit 1a4e5ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.docker/compose/db.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ services:
1212
volumes:
1313
- db-data:/var/lib/postgresql/data
1414
environment:
15-
- DATABASE_USER=${DATABASE_USER:?DATABASE_USER is required}
15+
- DATABASE_USERNAME=${DATABASE_USERNAME:?DATABASE_USERNAME is required}
1616
- DATABASE_PASSWORD=${DATABASE_PASSWORD:?DATABASE_PASSWORD is required}
1717
healthcheck:
18-
test: ["CMD-SHELL", "pg_isready -U $${DATABASE_USER}"]
18+
test: ["CMD-SHELL", "pg_isready -U $${DATABASE_USERNAME}"]
1919
interval: 10s
2020
timeout: 5s
2121
retries: 5

0 commit comments

Comments
 (0)