Wait for postgres to be ready
This commit is contained in:
parent
0f83ccb040
commit
2def1e3754
|
@ -50,6 +50,7 @@ job "[[ .paperless.instance ]]" {
|
|||
]
|
||||
}
|
||||
|
||||
[[ template "common/task.wait_for.tpl" merge .paperless . ]]
|
||||
[[ template "common/task.redis.tpl" ]]
|
||||
|
||||
task "webserver" {
|
||||
|
|
|
@ -27,6 +27,9 @@ paperless:
|
|||
PAPERLESS_ENABLE_COMPRESSION: false
|
||||
PAPERLESS_TRUSTED_PROXIES: 127.0.0.1
|
||||
|
||||
wait_for:
|
||||
- service: postgres[[ .consul.suffix ]]
|
||||
|
||||
# This is the main task
|
||||
webserver:
|
||||
|
||||
|
|
Loading…
Reference in New Issue