Add a migration service on the docker compose

This commit is contained in:
2024-03-25 22:25:41 +01:00
parent d24d18ea8e
commit 646df0f393
3 changed files with 28 additions and 0 deletions

View File

@@ -35,11 +35,21 @@ services:
condition: service_healthy
rabbitmq:
condition: service_healthy
migrations:
condition: service_completed_successfully
volumes:
- ./back:/app
- /app/out/
- kyoo:/kyoo
migrations:
build:
context: ./back
dockerfile: Dockerfile.migrations
restart: "no"
env_file:
- ./.env
front:
build:
context: ./front