mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Add a migration service on the docker compose
This commit is contained in:
parent
d24d18ea8e
commit
646df0f393
@ -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
|
||||
|
@ -26,9 +26,17 @@ services:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
migrations:
|
||||
condition: service_completed_successfully
|
||||
volumes:
|
||||
- kyoo:/kyoo
|
||||
|
||||
migrations:
|
||||
image: zoriya/kyoo_migrations:edge
|
||||
restart: "no"
|
||||
env_file:
|
||||
- ./.env
|
||||
|
||||
front:
|
||||
image: zoriya/kyoo_front:edge
|
||||
restart: unless-stopped
|
||||
|
@ -25,9 +25,19 @@ services:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
migrations:
|
||||
condition: service_completed_successfully
|
||||
volumes:
|
||||
- kyoo:/kyoo
|
||||
|
||||
migrations:
|
||||
build:
|
||||
context: ./back
|
||||
dockerfile: Dockerfile.migrations
|
||||
restart: "no"
|
||||
env_file:
|
||||
- ./.env
|
||||
|
||||
front:
|
||||
build: ./front
|
||||
restart: on-failure
|
||||
|
Loading…
x
Reference in New Issue
Block a user