Quick Docker Deployment¶
Get EpidBot running in Docker in 5 minutes.
Prerequisites¶
- Docker and Docker Compose installed
- API keys for your chosen LLM provider
Quick Start¶
1. Clone and Configure¶
2. Create .env File¶
cat > .env << 'EOF'
# API Keys (at least one required)
OPENAI_API_KEY=sk-your-key-here
# Security (generate with: python -c "import secrets; print(secrets.token_hex(32))")
SECRET_KEY=your-secret-key-here
# Default Admin Credentials
EPIDBOT_ADMIN_USER=admin
EPIDBOT_ADMIN_PASSWORD=change_this_password
EPIDBOT_ADMIN_EMAIL=admin@example.com
EOF
3. Start EpidBot¶
4. Get Admin Credentials¶
5. Access Application¶
Open browser to: http://localhost:3000
Login with the credentials from step 4.
6. Change Password (Important!)¶
Environment Variables¶
Required¶
| Variable | Description | Example |
|---|---|---|
EPIDBOT_ADMIN_PASSWORD |
Initial admin password (min 8 chars) | SecurePass123! |
SECRET_KEY |
Session encryption key | Generate with secrets.token_hex(32) |
Optional¶
| Variable | Default | Description |
|---|---|---|
EPIDBOT_ADMIN_USER |
admin |
Admin username |
EPIDBOT_ADMIN_EMAIL |
admin@localhost |
Admin email |
OPENAI_API_KEY |
- | OpenAI API key |
ZHIPU_API_KEY |
- | ZhipuAI API key |
DEEPSEEK_API_KEY |
- | DeepSeek API key |
GOOGLE_API_KEY |
- | Google API key |
User Management¶
Create Additional Users¶
List Users¶
Change Password¶
Delete User¶
Common Operations¶
View Logs¶
Stop EpidBot¶
Update to Latest Version¶
Backup Data¶
docker exec epidbot sqlite3 /data/chat_history.duckdb ".backup /data/backup.duckdb"
docker cp epidbot:/data/backup.duckdb ./backup_$(date +%Y%m%d).duckdb
Reset Everything (Warning: Deletes All Data!)¶
Troubleshooting¶
Container Won't Start¶
Check logs:
Cannot Login¶
-
Verify user exists:
-
Reset password:
Database Errors¶
If you see migration errors, the database may be in an inconsistent state:
# Backup first
docker exec epidbot sqlite3 /data/chat_history.duckdb ".backup /data/backup.duckdb"
# Reset database
docker-compose down
docker volume rm epidbot_epidbot_data
docker-compose up -d
Port Already in Use¶
Change the port in docker-compose.yml: