diff --git a/root/etc/cont-init.d/98-wait-for-db b/root/etc/cont-init.d/98-wait-for-db index eff8288..ee6774a 100644 --- a/root/etc/cont-init.d/98-wait-for-db +++ b/root/etc/cont-init.d/98-wait-for-db @@ -22,8 +22,7 @@ fi # Reduce default timeout to 1s because if the DB is not instantly available, # Then it's even if it _happens_ to become available while we're testing, # it won't be ready for us yet. Better to exit and restart the container altogether, -# So set "S6_BEHAVIOUR_IF_STAGE2_FAILS=2" below +# So set "S6_BEHAVIOUR_IF_STAGE2_FAILS=2" in docker-compose.yml if you need this (i.e., in swarm mode, where dependencies don't work) -S6_BEHAVIOUR_IF_STAGE2_FAILS=2 echo "Checking database responds within 1s on $dbhost:$eport..." /srv/wait-for $dbhost:$eport --timeout=1