@gnosis.pm/dex-telegram v0.0.5
dFusion Telegram Bots
Setup environment variables
Create a .env
file using .env.example as a template.
You'll need to setup the Telegram token and the channel in the .env
file or as environment variables when you run the process.
Run in develop
First setup the environment variables
# Install dependencies
yarn install
# Run
yarn dev
Run with docker
First setup the environment variables
Option 1: Run dockerhub image See all available tagged images:
# For example, run the develop branch
docker run --env-file .env gnosispm/dex-telegram:develop
Option 2: Use docker compose First setup the environment variables using .env.example as a template.
Then run docker compose:
docker-compose up
Run in Production
First setup the environment variables
First setup the environment variables using .env.example as a template.
# Install dependencies
yarn install
# Build project
yarn build
# Run
yarn start
liveness probes
The app will expose two endpoints to verify the liveness of it.
By default, the API is exposed in port 3000
, but it can be changed using API_PORT
environment var.
The endpoints using the default port would be available at: