fix: add migrations service to docker-compose and update build workflow for migrations image
This commit is contained in:
+18
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user