faster docker
This commit is contained in:
parent
9a3b6c1e75
commit
acf169edaf
3 changed files with 5 additions and 10 deletions
|
@ -15,7 +15,7 @@ x-healthcheck_defaults: &healthcheck_defaults
|
|||
interval: 10s
|
||||
timeout: 2s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
start_period: 10s
|
||||
x-c3nav-defaults: &c3nav-defaults
|
||||
build:
|
||||
context: ..
|
||||
|
@ -81,7 +81,7 @@ services:
|
|||
image: postgres:16
|
||||
healthcheck:
|
||||
<<: *healthcheck_defaults
|
||||
test: pg_isready -U postgres
|
||||
test: pg_isready -U postgres && psql -U postgres -d ${C3NAV_DATABASE_NAME:-c3nav} -c "SELECT 1;"
|
||||
environment:
|
||||
POSTGRES_DB: ${C3NAV_DATABASE_NAME:-c3nav}
|
||||
POSTGRES_HOST_AUTH_METHOD: "trust"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue