π Complete solution for one-click deployment of SillyTavern on Ubuntu servers
English | δΈζ
- π― One-Click Deployment - Single script completes all configurations
- π³ Docker Support - Automatic Docker environment installation and configuration
- π Security Configuration - Automated whitelist and user account management
- π Global Optimization - Official Docker repositories with fallback mirrors
- π Comprehensive Documentation - Includes troubleshooting and maintenance guides
This project provides the following script files:
one-click-sillytavern.sh- One-click deployment script that automatically handles Docker installation, SillyTavern deployment, and configuration
install-docker.sh- Docker environment installation scriptdeploy-sillytavern.sh- SillyTavern container deployment scriptconfigure-whitelist.sh- Whitelist configuration and account creation script
Before starting, ensure you have:
- An Ubuntu server (Ubuntu 20.04 or higher recommended)
- Port 8000 open on your server (for SillyTavern access)
- SSH access with
sudoprivileges - Stable internet connection
This is the recommended approach. The script automatically handles Docker installation, SillyTavern deployment, and whitelist configuration.
-
Upload the
one-click-sillytavern.shscript to any directory on your server -
Connect via SSH and run the following commands:
# Grant execution permissions
chmod +x one-click-sillytavern.sh
# Run the one-click deployment script
sudo ./one-click-sillytavern.shThe script executes in three automated stages:
- Automatically detects if Docker and Docker Compose are installed
- If not installed, automatically installs using official Docker repositories
- Configures user permissions (if Docker is installed for the first time, the script will prompt for re-login)
- Creates
/opt/sillytavernproject directory - Generates
docker-compose.ymlconfiguration file - Creates initial configuration files
- Pulls and starts SillyTavern container
- Prompts you to obtain your public IP address
- Automatically configures whitelist and restarts container
- Guides you through user account creation
- Finally disables whitelist mode
When the script reaches Stage 3:
- Get IP Address: Visit
http://YourServerIP:8000in your browser and note the public IP displayed on the page - Enter IP Address: Return to terminal, enter your public IP address and press Enter
- Create Account: Refresh the browser page, complete user account creation and login
- Confirm Completion: Return to terminal and press
yto complete final configuration
π Done! The entire deployment process takes about 5-10 minutes, after which you can use SillyTavern normally.
If you prefer more granular control over the deployment process, or if the one-click script encounters issues, you can use the following step-by-step approach.
Docker is the foundation for running SillyTavern in containers. This step automatically installs Docker and Docker Compose.
-
Upload the
install-docker.shscript to any directory on your server -
Connect via SSH and run the following commands:
# Grant execution permissions
chmod +x install-docker.sh
# Run installation script
sudo ./install-docker.shNote: The script uses official Docker repositories with fallback mirror sources to ensure successful installation.
After the script completes, you need to re-login to your SSH session:
# Re-login SSH
exit
# Then reconnect SSHAfter logging in, verify Docker installation:
docker --version
docker compose versionβ Success Indicator: If both commands return version numbers, your Docker environment is ready.
-
Upload the
deploy-sillytavern.shscript to any directory on your server -
Grant permissions and run:
# Grant execution permissions
chmod +x deploy-sillytavern.sh
# Run deployment script
sudo ./deploy-sillytavern.shAfter the script completes, check if the container started successfully:
docker psβ
Success Indicator: You should see the sillytavern container with STATUS showing Up.
-
Upload the
configure-whitelist.shscript to any directory on your server -
Grant permissions and run:
# Grant execution permissions
chmod +x configure-whitelist.sh
# Run configuration script
sudo ./configure-whitelist.shFollow the script prompts to complete IP address input, account creation, etc. The specific operations are the same as the one-click script.
If the one-click script is interrupted after Stage 1 (Docker installation), you can re-run the script and it will automatically skip Docker installation and continue with subsequent steps.
# View container logs
sudo docker logs sillytavern
# Restart container
cd /opt/sillytavern
sudo docker compose restart# Navigate to deployment directory
cd /opt/sillytavern
# Stop service
sudo docker compose down
# Start service
sudo docker compose up -d
# Restart service
sudo docker compose restartYou can reset the configuration to recreate an account:
# Stop container
cd /opt/sillytavern
sudo docker compose down
# Delete user data (Note: this will clear all chat history)
sudo rm -rf data/
# Restart container
sudo docker compose up -d
# Then re-run the whitelist configuration script
sudo ./configure-whitelist.shcd /opt/sillytavern
sudo docker compose pull
sudo docker compose up -dUser data and configuration files are stored in the /opt/sillytavern/ directory:
config/- Configuration filesdata/- User dataplugins/- Pluginsextensions/- Extensions
- Regular Updates: Regularly update SillyTavern images and system security patches
- Firewall Configuration: Ensure only necessary ports are open (e.g., 8000, 22)
- Strong Password Policy: Set strong passwords for SillyTavern accounts
- Data Backup: Regularly backup important data in the
/opt/sillytavern/directory
We welcome Issues and Pull Requests to help improve this project!
- Fork this repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If this project helps you, please give us a Star!
If you encounter any issues:
- π Check the FAQ section
- π Submit an Issue
- π¬ Join Discussions
Thank you for using! If this project helps you, please consider giving it a βοΈ