fix: add migrations service to docker-compose and update build workflow for migrations image
Build and deploy / build (push) Successful in 20s
Build and deploy / deploy (push) Successful in 15s

This commit is contained in:
k1nq
2025-11-30 00:18:19 +05:00
parent ef6b6d598e
commit 0e48023258
3 changed files with 51 additions and 3 deletions
+18 -2
View File
@@ -26,8 +26,24 @@ services:
ports:
- "80:8000"
depends_on:
- postgres
- redis
postgres:
condition: service_started
redis:
condition: service_started
migrations:
condition: service_completed_successfully
migrations:
image: ${GIT_HOST}/${GIT_USER}/${GIT_REPO}:migrations
restart: "no"
env_file:
- .env
environment:
DB_HOST: postgres
REDIS_URL: redis://redis:6379/0
depends_on:
postgres:
condition: service_started
postgres:
image: postgres:16-alpine