Wait for postgres to be ready

This commit is contained in:
Daniel Berteaud 2023-12-01 10:15:43 +01:00
parent 0f83ccb040
commit 2def1e3754
2 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,7 @@ job "[[ .paperless.instance ]]" {
]
}
[[ template "common/task.wait_for.tpl" merge .paperless . ]]
[[ template "common/task.redis.tpl" ]]
task "webserver" {

View File

@ -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: