Ensure postgres is available before running manage

This commit is contained in:
Daniel Berteaud 2024-03-23 22:12:13 +01:00
parent 5fe27c1c3b
commit 81b7e1beee
2 changed files with 3 additions and 1 deletions

View File

@ -115,6 +115,7 @@ job "postgres-manage" {
data = <<_EOT
LANG=fr_FR.utf8
TZ=Europe/Paris
WAIT_FOR_TARGETS=localhost:5432
_EOT
destination = "secrets/.env"
perms = 400

View File

@ -206,7 +206,8 @@ pg:
- service: 'master.[[ .instance ]]'
# Additional env var
env: {}
env:
WAIT_FOR_TARGETS: localhost:5432
# Connection to postgres through the service mesg
consul: