path: ~/repos/productivity/nextcloud/deploy.md · resolved in 0.02s
How to Self-Host Nextcloud
Step-by-step installation instructions, docker compose configuration, and server prerequisites for Nextcloud.
Prerequisites
- A virtual private server (VPS) running Ubuntu 22.04 LTS or similar Linux distribution
- Docker Engine and Docker Compose installed
- A domain name (A Record) pointing to your server's IP address
Quick Start Configuration
Create a docker-compose.yml file on your server:
version: "3.8"
services:
nextcloud:
image: nextcloud/nextcloud:latest
restart: always
ports:
- "8080:8080"
environment:
- PORT=8080
- NODE_ENV=production
Run the deployment command:
docker compose up -d
Setup reverse proxy rules (Nginx/Caddy) to handle domain traffic and SSL certification hooks.
Ensure your server meets the requirements and install Docker + Docker Compose packages.
Write a docker-compose.yml configuration specifying nextcloud services and port definitions.
Configure a web server (e.g., Caddy or Nginx Proxy Manager) to point your domain to the Docker container with automatic SSL.
sized to: 2GB RAM · 1 vCPU CPU · docker
hire vetted engineers to configure this server
Don't want to deal with command lines, DNS records, or Docker configs? Hire a vetted developer to set up Nextcloud on your server.
AI-driven coding expert and deployment automation specialist. Experienced in Docker, Cloudflare, and custom VPC setups.