Skip to content
Snippets Groups Projects
Unverified Commit a372a2e4 authored by quartztester's avatar quartztester Committed by GitHub
Browse files

Extended condition for depends_upon db

parent 6d68ca1a
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,13 @@ services: ...@@ -33,7 +33,13 @@ services:
volumes: volumes:
- ${data}/db:/var/lib/postgresql/data - ${data}/db:/var/lib/postgresql/data
command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0 command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0
#Checking health of Postgres db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${dbUser}"]
interval: 5s
timeout: 5s
retries: 5
frontend: frontend:
image: reallibrephotos/librephotos-frontend:${tag} image: reallibrephotos/librephotos-frontend:${tag}
container_name: frontend container_name: frontend
...@@ -74,7 +80,8 @@ services: ...@@ -74,7 +80,8 @@ services:
# Wait for Postgres # Wait for Postgres
depends_on: depends_on:
- db db:
condition: service_healthy
redis: redis:
image: redis:6 image: redis:6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment