summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-04-09 17:26:26 -0700
committerDessalines <happydooby@gmail.com>2019-04-09 17:26:26 -0700
commitfdba88ac51f080a822be28a5b8026b43e1664202 (patch)
treedd43086ebaa90795439ff5aafdbc444eed72799d /docker-compose.yml
parent658795f5311d54f68dd0ed145569c3b0f284b463 (diff)
Shortening docker compose health check
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml7
1 files changed, 4 insertions, 3 deletions
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