diff --git a/docker-compose.yml b/docker-compose.yml index 119baf0..94b9924 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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