From: Dessalines Date: Wed, 10 Apr 2019 00:26:26 +0000 (-0700) Subject: Shortening docker compose health check X-Git-Url: http://these/git/%22%7B%7D/static/gitweb.css?a=commitdiff_plain;h=f1bd0b50ea9acb0cb9cf21ef71307f1d0aa6d297;p=lemmy.git Shortening docker compose health check --- diff --git a/docker-compose.yml b/docker-compose.yml index 940cd0f6..03c72881 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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