fix migration script
This commit is contained in:
+1
-29
@@ -37,8 +37,6 @@ services:
|
||||
depends_on:
|
||||
psql:
|
||||
condition: service_healthy
|
||||
migration:
|
||||
condition: service_completed_successfully
|
||||
ports:
|
||||
- "80:8000"
|
||||
entrypoint: ["./entrypoint.sh", "--dev"]
|
||||
@@ -74,8 +72,6 @@ services:
|
||||
depends_on:
|
||||
psql:
|
||||
condition: service_healthy
|
||||
migration:
|
||||
condition: service_completed_successfully
|
||||
ports:
|
||||
- "80:8000"
|
||||
|
||||
@@ -103,31 +99,7 @@ services:
|
||||
retries: 5
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
|
||||
migration:
|
||||
profiles: ["prod", "dev"]
|
||||
image: "${DOCKER_REGISTRY:-local}/migration-tool:${IMAGE_TAG:-local}"
|
||||
build:
|
||||
dockerfile: ./docker/dockerfile
|
||||
context: ../
|
||||
target: migration-tool
|
||||
environment:
|
||||
- DB_HOST=psql
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ../configs
|
||||
target: /home/excel-project/configs
|
||||
- type: bind
|
||||
source: ../src/migrations
|
||||
target: /home/excel-project/src/migrations
|
||||
|
||||
depends_on:
|
||||
- psql
|
||||
networks:
|
||||
- backend
|
||||
|
||||
|
||||
|
||||
networks:
|
||||
backend:
|
||||
name: "${BACKEND_NETWORK:-backend_network}"
|
||||
Reference in New Issue
Block a user