Update docker-compose.yml

This commit is contained in:
jassim 2025-09-04 12:19:37 +00:00
parent 3d673e4284
commit 5da1072c08

View File

@ -425,31 +425,31 @@ services:
# =====================================
# One-shot migrations runner (init job)
# =====================================
# migrations:
# image: node:18
# container_name: pipeline_migrations
# working_dir: /app
# volumes:
# - ./:/app
# environment:
# - POSTGRES_HOST=postgres
# - POSTGRES_PORT=5432
# - POSTGRES_DB=dev_pipeline
# - POSTGRES_USER=pipeline_admin
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# - REDIS_HOST=redis
# - REDIS_PORT=6379
# - REDIS_PASSWORD=${REDIS_PASSWORD}
# - NODE_ENV=development
# entrypoint: ["/bin/sh", "-c", "chmod +x ./scripts/migrate-all.sh && ./scripts/migrate-all.sh"]
# depends_on:
# postgres:
# condition: service_healthy
# redis:
# condition: service_healthy
# networks:
# - pipeline_network
# restart: "no"
migrations:
image: node:18
container_name: pipeline_migrations
working_dir: /app
volumes:
- ./:/app
environment:
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=dev_pipeline
- POSTGRES_USER=pipeline_admin
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD}
- NODE_ENV=development
entrypoint: ["/bin/sh", "-c", "chmod +x ./scripts/migrate-all.sh && ./scripts/migrate-all.sh"]
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- pipeline_network
restart: "no"
# =====================================
# Enhanced Infrastructure for Code Generation