Declare dependencies in docker-compose.dev.yml (#331)

rake db:migrate was hanging
This commit is contained in:
Dorian Marié 2024-02-26 09:23:50 +01:00 committed by GitHub
parent 37f85f0816
commit 4e5defc846
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,6 +56,8 @@ services:
container_name: lago_front
stdin_open: true
restart: unless-stopped
depends_on:
- api
build:
context: ./front
dockerfile: $LAGO_PATH/front/Dockerfile.dev
@ -81,6 +83,8 @@ services:
container_name: lago_api
restart: unless-stopped
command: ["./scripts/start.dev.sh"]
depends_on:
- db
build:
context: ./api
dockerfile: $LAGO_PATH/api/Dockerfile.dev
@ -126,6 +130,8 @@ services:
container_name: lago_api_worker
restart: unless-stopped
command: ["./scripts/start.worker.dev.sh"]
depends_on:
- api
build:
context: ./api
dockerfile: $LAGO_PATH/api/Dockerfile.dev
@ -155,6 +161,8 @@ services:
api-events-worker:
image: api
container_name: lago_api_events_worker
depends_on:
- api
restart: unless-stopped
command: ["./scripts/start.events.worker.dev.sh"]
build:
@ -188,6 +196,8 @@ services:
container_name: lago_api_clock
restart: unless-stopped
command: ["./scripts/start.clock.dev.sh"]
depends_on:
- api
build:
context: ./api
dockerfile: $LAGO_PATH/api/Dockerfile.dev