Other Deployment Options
CapRover
HKML-X includes a captain-definition file for one-click deployment on CapRover.
- Install CapRover on your server
- Create a new app in the CapRover dashboard
- Deploy using the GitHub repository or CLI
- Set environment variables in the CapRover dashboard
Single Container (without Docker Compose)
If you prefer to run the bot without Docker Compose:
bash
docker build -t hkml-x .
docker run -p 8080:8080 hkml-xNote: The tunnel and some services won't auto-start. You'll need to handle networking yourself.
Multi-Instance (Multiple Bots)
Run multiple bot instances on the same server. Each needs its own config and data.
- Create separate
config.pyfiles for each bot (e.g.,config2.py,config3.py) - Uncomment
app2andtunnel2indocker-compose.yml - Update volume mounts in the compose file to point to separate config files
- Run
docker compose up -d
Each bot needs its own BOT_TOKEN, and you should set CMD_SUFFIX to differentiate commands (e.g., "2" so one bot uses /mirror and the other uses /mirror2).