This guide will walk you step-by-step through updating your existing n8n instance on a Hostinger VPS (pre-installed with Docker and Docker Compose) - without losing any of your workflows, credentials, or data.
✅ Important: Hostinger’s n8n VPS already uses persistent volumes, so this update process is safe and non-destructive.
This just clears the screen for better visibility.
clear
This will download the latest version of n8n without affecting your data.
docker compose pull n8n
⚠️ Make sure you’re in the directory containing yourdocker-compose.yml
. Which you can verify simply my enteringls
in terminal.
This stops the old container (but does not remove your workflows, because data is already persisted in Hostinger n8n VPS).
docker compose down
This restarts n8n with the latest version.
docker compose up -d
docker compose ps
docker exec -it root-n8n-1 n8n -v
Replace n8n with your container name if it's different. Use 'docker ps' to check.
Hostinger’s Docker setup includes a persistent volume like:
volumes:
- ~/.n8n:/home/node/.n8n
This ensures:
- ✅ Workflows
- ✅ Credentials
- ✅ Execution history ...all remain safe even when containers are stopped or updated.
Your n8n instance is now successfully updated on Hostinger — with no data lost and everything working on the latest version.
- Code: MIT License
- Screenshots & Docs: CC BY 4.0 — Attribution required
Credit: Moksh Bhardwaj
Moksh Bhardwaj
🔗 YouTube
🔗 Super Profile
🔗 GitHub
🎥 Watch the full tutorial on YouTube
⭐ Star this repo if you find it useful and want more tech tutroials!