Prerequisites
- Docker and Docker Compose installed. See Docker.
- A domain pointing to your VPS. See Custom Domain.
- Ports 80 and 443 open. See Firewall.
1. Create the project folder
2. Write the compose file
Createdocker-compose.yml:
cloud.example.com with your own values.
3. Start it
4. Put Nginx in front and add HTTPS
Install Nginx if you have not already:/etc/nginx/sites-available/cloud.example.com:
5. Finish the setup in the browser
Openhttps://cloud.example.com and create your admin account. Nextcloud will finish its first-run setup automatically.
Everyday commands
Back it up
Nextcloud’s data lives in two Docker volumes (db and nextcloud). Include both in your backup strategy, or take a panel backup of the whole VPS before major changes.
