- Docker installed (Get Docker)
- Docker Compose installed (included with Docker Desktop)
Create a .env file in the project root:
cp .env.example .envEdit .env and add your credentials:
API_ID=your_api_id
API_HASH=your_api_hash
BOT_TOKEN=your_bot_token
MONGODB_URI=your_mongodb_uri
DATABASE_NAME=roxyzipmakerbotdb
PORT=8080
OWNER_ID=your_telegram_user_id# Build and start the bot
docker-compose up -d
# View logs
docker-compose logs -f
# Stop the bot
docker-compose down# Build the image
docker build -t roxy-zip-bot .
# Run the container
docker run -d \
--name roxy-zip-bot \
--env-file .env \
-p 8080:8080 \
-v $(pwd)/downloads:/app/downloads \
-v $(pwd)/zips:/app/zips \
roxy-zip-bot
# View logs
docker logs -f roxy-zip-bot
# Stop the bot
docker stop roxy-zip-bot
docker rm roxy-zip-bot-
Install Railway CLI:
npm install -g @railway/cli
-
Login and deploy:
railway login railway init railway up
-
Add environment variables in Railway dashboard
- Create a new Web Service
- Connect your GitHub repository
- Select Docker as the environment
- Add environment variables
- Deploy!
- Create a Droplet with Docker
- SSH into your droplet
- Clone your repository
- Run with docker-compose:
git clone https://github.com/vyneet/zip.git cd zip cp .env.example .env # Edit .env with your credentials docker-compose up -d
docker psdocker-compose logs -fcurl http://localhost:8080/healthdocker-compose restartContainer keeps restarting?
- Check logs:
docker-compose logs - Verify environment variables in
.env - Ensure MongoDB URI is correct
Can't connect to bot?
- Verify BOT_TOKEN is correct
- Check if port 8080 is accessible
- Ensure firewall allows incoming connections
Out of disk space?
- Clean up old images:
docker system prune -a - Check downloads/zips folders
# Stop containers
docker-compose down
# Remove volumes (deletes downloaded files)
docker-compose down -v
# Remove images
docker rmi roxy-zip-bot© 2025 RoxyBasicNeedBot ⚡