Explorar o código

Merge pull request #1138 from laurentleseigneur/patch-1

Update stack.yml
yosifkit %!s(int64=8) %!d(string=hai) anos
pai
achega
0e0b57fae5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      bonita/stack.yml

+ 2 - 1
bonita/stack.yml

@@ -22,7 +22,7 @@ services:
       - TENANT_PASSWORD=secret
       - PLATFORM_LOGIN=pfadmin
       - PLATFORM_PASSWORD=pfsecret
-    restart: always
+    restart: on-failure:2
     depends_on:
       - db
     entrypoint:
@@ -34,6 +34,7 @@ services:
         export PGPASSWORD="$$POSTGRES_ENV_POSTGRES_PASSWORD"
         maxTries=10
         while [ "$$maxTries" -gt 0 ] && ! psql -h "$$DB_HOST" -U 'postgres' -c '\l'; do
+            let maxTries--
             sleep 1
         done
         echo