UPDATE: Auth module, User module
All checks were successful
Build and Release / release (push) Successful in 49s
All checks were successful
Build and Release / release (push) Successful in 49s
This commit is contained in:
@@ -28,10 +28,12 @@ services:
|
|||||||
- history-api-project
|
- history-api-project
|
||||||
|
|
||||||
migrate:
|
migrate:
|
||||||
image: migrate/migrate
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile_inline: |
|
||||||
|
FROM migrate/migrate
|
||||||
|
COPY db/migrations /migrations
|
||||||
container_name: history_migrate
|
container_name: history_migrate
|
||||||
volumes:
|
|
||||||
- ./db/migrations:/migrations:ro
|
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -44,8 +46,6 @@ services:
|
|||||||
DB_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable"
|
DB_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable"
|
||||||
|
|
||||||
echo "Running migrations..."
|
echo "Running migrations..."
|
||||||
# We skip the 'version' check loop because 'depends_on'
|
|
||||||
# with 'service_healthy' already handles the wait.
|
|
||||||
/migrate -path /migrations -database "$$DB_URL" up
|
/migrate -path /migrations -database "$$DB_URL" up
|
||||||
networks:
|
networks:
|
||||||
- history-api-project
|
- history-api-project
|
||||||
|
|||||||
Reference in New Issue
Block a user