Update docker-compose.yml

This commit is contained in:
jassim 2025-09-04 12:15:44 +00:00
parent d71e6f8b33
commit 3d673e4284

View File

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