Ensure postgres is available before running manage
This commit is contained in:
parent
5fe27c1c3b
commit
81b7e1beee
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue