mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 08:16:12 +00:00
Shortening docker compose health check
This commit is contained in:
parent
658795f531
commit
fdba88ac51
|
@ -10,9 +10,9 @@ services:
|
|||
POSTGRES_DB: rrr
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U rrr"]
|
||||
interval: 30s
|
||||
timeout: 30s
|
||||
retries: 3
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
lemmy:
|
||||
build:
|
||||
context: .
|
||||
|
@ -22,6 +22,7 @@ services:
|
|||
environment:
|
||||
LEMMY_FRONT_END_DIR: /app/dist
|
||||
DATABASE_URL: postgres://rrr:rrr@db:5432/rrr
|
||||
restart: always
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
|
Loading…
Reference in a new issue