Add postgres dependency on migration service

This commit is contained in:
Zoe Roux 2024-03-25 23:47:58 +01:00
parent ea979d9663
commit f6bb77a6a5
No known key found for this signature in database
3 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,9 @@ services:
context: ./back
dockerfile: Dockerfile.migrations
restart: "no"
depends_on:
postgres:
condition: service_healthy
env_file:
- ./.env

View File

@ -34,6 +34,9 @@ services:
migrations:
image: zoriya/kyoo_migrations:edge
restart: "no"
depends_on:
postgres:
condition: service_healthy
env_file:
- ./.env

View File

@ -35,6 +35,9 @@ services:
context: ./back
dockerfile: Dockerfile.migrations
restart: "no"
depends_on:
postgres:
condition: service_healthy
env_file:
- ./.env