Nextcloud Deployment Example
Nextcloud is an open-source collaboration and file-sharing platform, ideal for hosting private cloud storage. Instantly.run makes deploying Nextcloud simple and secure.
Step-by-Step Guide
This guide demonstrates how to deploy a Nextcloud instance using Instantly.run.
Deployment Command
docker run --context=instantly --name nextcloud-server --domainname cloud.example.com \
-e NEXTCLOUD_ADMIN_USER=admin -e NEXTCLOUD_ADMIN_PASSWORD=securepassword \
-p 8080:80 -v hdd:/var/www/html
Command Breakdown
--context=instantly
: Ensures the container is managed under the Instantly.run context.--name nextcloud-server
: Assigns the container a unique name for reference.--domainname cloud.example.com
: Assigns the container a public domain.- Environment Variables:
NEXTCLOUD_ADMIN_USER
: The admin username for Nextcloud.NEXTCLOUD_ADMIN_PASSWORD
: The admin password for Nextcloud.
-p 8080:80
: Maps port 80 in the container to port 8080 on the host.-v hdd:/var/www/html
: Mounts a volume to persist Nextcloud data.
Accessing the Deployment
- Public Domain: Once deployed, your Nextcloud instance will be accessible at
https://cloud.example.com
. - Automatic SSL: An SSL certificate will be automatically generated for the domain, and HTTP traffic will redirect to HTTPS.
Modifying the Deployment
To make updates (e.g., change admin credentials or add volumes), re-run the command with updated parameters. For example, to change the volume mapping:
docker run --context=instantly --name nextcloud-server --domainname cloud.example.com \
-e NEXTCLOUD_ADMIN_USER=admin -e NEXTCLOUD_ADMIN_PASSWORD=newpassword \
-p 8080:80 -v ssd:/var/www/html
Additional Configuration
For more configuration options, refer to the Nextcloud Docker Documentation.