mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Checking if postgres is ready faster to speed up docker container startup.
This commit is contained in:
parent
da86e6a88d
commit
08612fb9b6
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ services:
|
|||
healthcheck:
|
||||
test: [ 'CMD-SHELL', 'pg_isready -U postgres' ]
|
||||
interval: 10s
|
||||
start_period: 30s
|
||||
start_interval: 1s
|
||||
volumes:
|
||||
- ./pg_data:/var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue