Add postgres dependency on migration service

This commit is contained in:
2024-03-25 23:47:58 +01:00
parent ea979d9663
commit f6bb77a6a5
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -47,6 +47,9 @@ services:
context: ./back
dockerfile: Dockerfile.migrations
restart: "no"
depends_on:
postgres:
condition: service_healthy
env_file:
- ./.env
+3
View File
@@ -34,6 +34,9 @@ services:
migrations:
image: zoriya/kyoo_migrations:edge
restart: "no"
depends_on:
postgres:
condition: service_healthy
env_file:
- ./.env
+3
View File
@@ -35,6 +35,9 @@ services:
context: ./back
dockerfile: Dockerfile.migrations
restart: "no"
depends_on:
postgres:
condition: service_healthy
env_file:
- ./.env