From efdb657904f0684388948ed8b8670e682d4a1762 Mon Sep 17 00:00:00 2001 From: Cyrille <1618640+cyri113@users.noreply.github.com> Date: Sat, 13 Apr 2024 18:05:54 +0200 Subject: [PATCH] add telegram --- development/.env.telegram.sample | 16 ++++++++++++++++ development/docker-compose.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 development/.env.telegram.sample diff --git a/development/.env.telegram.sample b/development/.env.telegram.sample new file mode 100644 index 0000000..d8efb63 --- /dev/null +++ b/development/.env.telegram.sample @@ -0,0 +1,16 @@ +TELEGRAM_TOKEN=GENERATE_ON_BOTFATHER + +RMQ_HOST=localhost +RMQ_PORT=5672 +RMQ_USER=guest +RMQ_PASS=guest + +MONGO_HOST=localhost +MONGO_PORT=27017 +MONGO_USER=root +MONGO_PASS=pass + +NEO4J_HOST=localhost +NEO4J_PORT=7687 +NEO4J_USER=neo4j +NEO4J_PASS=password \ No newline at end of file diff --git a/development/docker-compose.yml b/development/docker-compose.yml index 8d23134..15914d8 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -500,6 +500,36 @@ services: <<: [*hivemind-common, *md-resources-common] command: python3 worker.py + ### TELEGRAM + + x-telegram-common: + &telegram-common + image: ghcr.io/togethercrew/telegram:main + restart: unless-stopped + env_file: + - ./.env.telegram + depends_on: + rabbitmq: + condition: service_healthy + neo4j: + condition: service_healthy + mongodb: + condition: service_healthy + networks: + - production + - monitoring + <<: [*sm-resources-common] + + telegram-bot: + <<: [*telegram-common] + command: npm run start bot + telegram-events: + <<: [*telegram-common] + command: npm run start event-store + telegram-graph: + <<: [*telegram-common] + command: npm run start graph-store + ### ADMIN admin-panel: