These guides use a fresh Ubuntu 24.04 LTS server, Docker Engine and the Compose plugin. Commands run in the server's shell unless a step says “on your computer.” You need SSH access and a user allowed to run sudo. An OwnServa account is optional for following these instructions; application accounts are separate.
Prepare your server
Choose storage that fits your files as well as the operating system. Our suggested starting sizes on the application pages are planning estimates, not vendor minimums. Leave room for backups and growth. For Immich, follow its published hardware requirements; for AI, model size determines the memory you need.
Connect from your computer, replacing the username and address:
ssh your-user@YOUR_SERVER_IP
sudo apt update
sudo apt install -y ca-certificates curl openssl nano
Use a fresh server for these examples. If a web server already owns ports 80 or 443, extend its existing proxy configuration instead of installing a competing proxy. Keep your SSH session open while changing firewall rules. Allow SSH and, when publishing, inbound TCP 80 and 443 at your hosting provider and host firewall.
Install Docker and Compose
Use Docker's signed Ubuntu package repository. On a new server:
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo docker run --rm hello-world
sudo docker compose version
The guides below use sudo docker compose. You can omit sudo if you already have Docker permission. Membership of the Docker group grants control equivalent to root. If Docker is already installed, check the official Ubuntu installation instructions before changing packages.
Create an application directory
Use a separate directory for each application so services and volumes stay easy to identify:
mkdir -p ~/selfhosted
cd ~/selfhosted
umask 077
Each app guide tells you the next directory to create. Save its YAML as compose.yaml using nano compose.yaml, and its environment settings as .env using nano .env. Press Ctrl+O, Enter, then Ctrl+X to save in nano. Generate a different secret for each password with openssl rand -hex 32; replace every REPLACE_... value before starting. Keep .env private with chmod 600 .env. Never paste real secrets into a public repository.
Reach an app privately
Most examples bind their web port to 127.0.0.1, so an unfinished installer is not exposed to the internet. To open one from your computer, use a second terminal:
# Example: WordPress on server port 8082
ssh -L 8082:127.0.0.1:8082 your-user@YOUR_SERVER_IP
Leave that connection running and open http://localhost:8082 in your computer's browser. Substitute the port listed in your app guide. localhost in a browser means your computer; the SSH tunnel carries the request to the server. ownCloud's identity flow uses its configured HTTPS domain, so follow its domain setup before signing in.
Add your domain and HTTPS
Create a DNS A record such as photos.example.com pointing to your server's public IPv4 address. Only add an AAAA record if your IPv6 address routes to the same server. Replace all example.com domains in a guide with domains you control.
On a new server without an existing reverse proxy, install Caddy using its official repository:
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https gnupg
curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg
sudo chmod o+r /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install -y caddy
sudo nano /etc/caddy/Caddyfile
Add a site block using your app's port. Keep existing blocks if you already host other sites:
photos.example.com {
reverse_proxy 127.0.0.1:2283
}
Validate and reload:
sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl reload caddy
Caddy requests and renews HTTPS certificates when DNS and inbound ports 80/443 are correct. Its reverse proxy supports WebSockets. Follow any application-specific trusted-proxy steps in its guide. Do not publish database ports. Docker-published ports can bypass some host firewall rules, which is why these examples use loopback web bindings. See Caddy installation and its reverse-proxy guide.
Check and maintain an installation
From an application's directory:
sudo docker compose config --quiet
sudo docker compose up -d
sudo docker compose ps
sudo docker compose logs --tail=100
Wait for databases to become healthy before using the installer. Treat moving image tags in these beginner examples as a starting point: record the resolved versions, check upstream release notes, and pin a supported release or digest for repeatable production deployments. Do not update major versions blindly.
Back up the database, application files and required secrets to another system. Test a restore before depending on the application. docker compose down -v removes volumes; it is not an upgrade or troubleshooting step. Configure real SMTP before relying on password-reset or invitation mail.
Choose your application
Return to the installation guide catalog to choose Nextcloud, ownCloud Infinite Scale, Immich, WordPress, Uptime Kuma, n8n or Ollama with Open WebUI. If you would prefer help planning the server and setup, create an OwnServa account and contact the team with the app and server details.
Written by OwnServa. Check the official release notes before updating, keep independent backups and test a restore before relying on your installation.