Update docker-compose.yml
This commit is contained in:
parent
d71e6f8b33
commit
3d673e4284
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user