Fix: share trigger network to core

This commit is contained in:
Harshith Mullapudi 2025-08-06 13:11:42 +05:30
parent 1c619f7899
commit 2fc3d20cf1
3 changed files with 9 additions and 11 deletions

View File

@ -54,4 +54,4 @@ MODEL=gpt-4.1-2025-04-14
## Trigger ## ## Trigger ##
TRIGGER_PROJECT_ID=proj_core TRIGGER_PROJECT_ID=proj_core
TRIGGER_SECRET_KEY=tr_prod_1yvnRh3pA1M2E67GBY7m TRIGGER_SECRET_KEY=tr_prod_1yvnRh3pA1M2E67GBY7m
TRIGGER_API_URL=http://trigger-webapp:8030 TRIGGER_API_URL=http://trigger-webapp:3000

View File

@ -41,7 +41,6 @@ services:
condition: service_healthy condition: service_healthy
networks: networks:
- core - core
- trigger-webapp
postgres: postgres:
container_name: core-postgres container_name: core-postgres
@ -101,8 +100,6 @@ networks:
core: core:
name: core-network name: core-network
driver: bridge driver: bridge
trigger-webapp:
external: true
volumes: volumes:
postgres_data: postgres_data:

View File

@ -20,7 +20,7 @@ services:
- TRIGGER_TASKS_IMAGE=${TRIGGER_TASKS_IMAGE} - TRIGGER_TASKS_IMAGE=${TRIGGER_TASKS_IMAGE}
- NODE_ENV=production - NODE_ENV=production
networks: networks:
- trigger-webapp - webapp
- core-network - core-network
webapp: webapp:
@ -37,7 +37,7 @@ services:
condition: service_started condition: service_started
networks: networks:
- trigger-webapp - webapp
- supervisor - supervisor
- core-network - core-network
volumes: volumes:
@ -69,7 +69,7 @@ services:
MAGIC_LINK_SECRET: ${MAGIC_LINK_SECRET} MAGIC_LINK_SECRET: ${MAGIC_LINK_SECRET}
ENCRYPTION_KEY: ${ENCRYPTION_KEY} ENCRYPTION_KEY: ${ENCRYPTION_KEY}
MANAGED_WORKER_SECRET: ${MANAGED_WORKER_SECRET} MANAGED_WORKER_SECRET: ${MANAGED_WORKER_SECRET}
REDIS_HOST: host.docker.internal REDIS_HOST: core-redis
REDIS_PORT: 6379 REDIS_PORT: 6379
REDIS_TLS_DISABLED: true REDIS_TLS_DISABLED: true
APP_LOG_LEVEL: info APP_LOG_LEVEL: info
@ -108,7 +108,7 @@ services:
restart: ${RESTART_POLICY:-unless-stopped} restart: ${RESTART_POLICY:-unless-stopped}
logging: *logging-config logging: *logging-config
networks: networks:
- trigger-webapp - webapp
- core-network - core-network
environment: environment:
DATABASE_URL: ${ELECTRIC_DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/main?schema=public&sslmode=disable} DATABASE_URL: ${ELECTRIC_DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/main?schema=public&sslmode=disable}
@ -136,7 +136,7 @@ services:
- clickhouse:/bitnami/clickhouse - clickhouse:/bitnami/clickhouse
- ../clickhouse/override.xml:/bitnami/clickhouse/etc/config.d/override.xml:ro - ../clickhouse/override.xml:/bitnami/clickhouse/etc/config.d/override.xml:ro
networks: networks:
- trigger-webapp - webapp
healthcheck: healthcheck:
test: test:
[ [
@ -169,7 +169,7 @@ services:
networks: networks:
- supervisor - supervisor
- docker-proxy - docker-proxy
- trigger-webapp - webapp
- core-network - core-network
volumes: volumes:
- shared:/home/node/shared - shared:/home/node/shared
@ -244,6 +244,7 @@ networks:
supervisor: supervisor:
name: supervisor name: supervisor
webapp: webapp:
name: trigger-webapp name: webapp
driver: bridge
core-network: core-network:
external: true external: true