Skip to content

Commit c7af427

Browse files
authored
Update control startup example (#23668)
## Description This PR updates control startup example to prevent Compose from interpolating values intended as shell command arguments. Current example yields the following warnings: ```bash WARN[0000] The "POSTGRES_USER" variable is not set. Defaulting to a blank string. WARN[0000] The "POSTGRES_DB" variable is not set. Defaulting to a blank string. ``` ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 14932d8 commit c7af427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/manuals/compose/how-tos/startup-order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ services:
4242
db:
4343
image: postgres
4444
healthcheck:
45-
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
45+
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
4646
interval: 10s
4747
retries: 5
4848
start_period: 30s

0 commit comments

Comments
 (0)