Updates
How to update the V2RayTun panel and nodes to the latest version.
Updating the Panel
The v2raytunsetup CLI handles panel updates. It pulls the latest Docker images, applies any database migrations, and restarts services.
v2raytunsetup updateWhat Happens During an Update
- The latest Docker images are pulled (
backend,frontend,caddy). - Running containers are stopped gracefully.
- Database migrations run automatically.
- All services restart with the new images.
Typical downtime is under 30 seconds.
Pre-Update Checklist
- Back up first — run
v2raytunsetup backupbefore updating. - Check disk space — ensure at least 2 GB of free space for new images.
- Review the changelog — check the GitHub releases (opens in a new tab) for breaking changes.
Updating Nodes
Nodes are updated independently of the panel.
Option 1 — Re-deploy from the Panel
- Go to Nodes in the panel and select the node.
- Click Regenerate Compose to get the latest
docker-compose.yml. - SSH into the node and replace the file.
- Pull and restart:
cd /opt/v2raytun-node
docker compose pull
docker compose up -dOption 2 — Pull and Restart
If the compose file has not changed, simply pull updated images:
cd /opt/v2raytun-node
docker compose pull
docker compose up -dVerifying the Update
Panel
v2raytunsetup versionOr check the version displayed in the panel footer.
Node
docker compose ps
docker compose logs --tail 20Confirm the node shows Online in the panel.
Rollback
If an update causes issues:
- Stop the services:
v2raytunsetup stop - Restore from backup:
v2raytunsetup restore /opt/v2raytun/backups/backup-TIMESTAMP.tar.gz - Start services:
v2raytunsetup start