VPS Hosting (Docker)
This guide covers running crocbot on a VPS using Docker.How it works
- The Gateway runs on the VPS inside a Docker container and owns state + workspace.
- You connect from your laptop/phone via the Control UI or Tailscale/SSH.
- Treat the VPS as the source of truth and back up the state + workspace.
- Secure default: keep the Gateway on loopback and access it via SSH tunnel or Tailscale Serve.
If you bind to
lan/tailnet, requiregateway.auth.tokenorgateway.auth.password.
Setup
- Provision a VPS with any cloud provider (Hetzner, DigitalOcean, AWS, GCP, etc.)
- Install Docker on the VPS
- Clone the repo and build:
- Configure environment — create a
.envfile with your API keys and tokens - Start the gateway:
Remote access
The Gateway runs on the VPS and handles all Telegram traffic. Access the Gateway remotely via Tailscale Serve/Funnel or SSH tunnel. Docs: Remote access, TailscaleResource requirements
| Resource | Minimum | Recommended |
|---|---|---|
| Memory | 512MB | 2GB |
| Storage | 1GB | 5GB+ |
| CPU | 1 vCPU | 2 vCPU |
