Skip to content

Commit 0e0b57f

Browse files
authored
Merge pull request docker-library#1138 from laurentleseigneur/patch-1
Update stack.yml
2 parents d98bc1f + d7f952b commit 0e0b57f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bonita/stack.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
- TENANT_PASSWORD=secret
2323
- PLATFORM_LOGIN=pfadmin
2424
- PLATFORM_PASSWORD=pfsecret
25-
restart: always
25+
restart: on-failure:2
2626
depends_on:
2727
- db
2828
entrypoint:
@@ -34,6 +34,7 @@ services:
3434
export PGPASSWORD="$$POSTGRES_ENV_POSTGRES_PASSWORD"
3535
maxTries=10
3636
while [ "$$maxTries" -gt 0 ] && ! psql -h "$$DB_HOST" -U 'postgres' -c '\l'; do
37+
let maxTries--
3738
sleep 1
3839
done
3940
echo

0 commit comments

Comments
 (0)