Fix: share trigger network to core

This commit is contained in:
Harshith Mullapudi 2025-08-06 11:50:48 +05:30
parent 8d9a539ba8
commit 1c619f7899
3 changed files with 10 additions and 7 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://host.docker.internal:8030 TRIGGER_API_URL=http://trigger-webapp:8030

View File

@ -41,6 +41,7 @@ services:
condition: service_healthy condition: service_healthy
networks: networks:
- core - core
- trigger-webapp
postgres: postgres:
container_name: core-postgres container_name: core-postgres
@ -100,6 +101,8 @@ 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:
- webapp - trigger-webapp
- core-network - core-network
webapp: webapp:
@ -37,7 +37,7 @@ services:
condition: service_started condition: service_started
networks: networks:
- webapp - trigger-webapp
- supervisor - supervisor
- core-network - core-network
volumes: volumes:
@ -108,7 +108,7 @@ services:
restart: ${RESTART_POLICY:-unless-stopped} restart: ${RESTART_POLICY:-unless-stopped}
logging: *logging-config logging: *logging-config
networks: networks:
- webapp - trigger-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:
- webapp - trigger-webapp
healthcheck: healthcheck:
test: test:
[ [
@ -169,7 +169,7 @@ services:
networks: networks:
- supervisor - supervisor
- docker-proxy - docker-proxy
- webapp - trigger-webapp
- core-network - core-network
volumes: volumes:
- shared:/home/node/shared - shared:/home/node/shared
@ -244,6 +244,6 @@ networks:
supervisor: supervisor:
name: supervisor name: supervisor
webapp: webapp:
name: webapp name: trigger-webapp
core-network: core-network:
external: true external: true