Skip to content

Commit

Permalink
Update workers on docker-compose.yml
Browse files Browse the repository at this point in the history
on cold start of docker compose workers crashes because ipfs is not ready yet. With this the workers wait til the ipfs sevice is READY
  • Loading branch information
wolfwolker authored Jul 5, 2023
1 parent 4fda044 commit 149936c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ services:
context: .
dockerfile: ./worker-service/Dockerfile
depends_on:
- ipfs-node
- auth-service
ipfs-node:
condition: service_healthy
auth-service:
condition: service_started
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
- SERVICE_CHANNEL:"worker.1"
Expand All @@ -97,8 +99,10 @@ services:
context: .
dockerfile: ./worker-service/Dockerfile
depends_on:
- ipfs-node
- auth-service
ipfs-node:
condition: service_healthy
auth-service:
condition: service_started
environment:
- GUARDIAN_ENV=${GUARDIAN_ENV}
- SERVICE_CHANNEL="worker.2"
Expand Down

0 comments on commit 149936c

Please sign in to comment.