Getting started
This guide covers running TrufotBot using Docker, ideal for users who want to self-host without developing the application.
Prerequisites
- Docker
- Telegram (e.g. on your phone)
- You will also need to follow some telegram setup steps.
Docker configuration
Create a directory, and in it a docker-compose.yaml file:
services:
trufotbot:
image: ghcr.io/lutzky/trufotbot:latest
container_name: trufotbot
restart: unless-stopped
env_file:
- secrets.env
ports:
- "3000:3000"
volumes:
- ./db:/db
environment:
- DATABASE_URL=/db/prod.db
- FRONTEND_URL=http://your-hostname.localdomain:3000
- RUST_LOG=info
- TZ=Europe/London
Create a telegram bot. Then, Create a file called
secrets.env (referenced above using env_file) with your settings:
See also environment variables.
Running with Docker
Starting the Application
The web interface will be available at http://localhost:3000.
Next Steps
Once running, see Interacting with the Bot to learn how to record medications and use the bot.