# Nextcloud AIO on a fresh **Debian 12** VPS > **Scope** > 1. Run Docker as your normal user (no `sudo docker …`) > 2. Expose the AIO wizard on **ports 80 / 8080 / 8443** > 3. Leave room for your own DNS / reverse-proxy tweaks later --- ## 1 · Install Docker Engine ```bash sudo apt update && sudo apt install docker.io ``` > **Tip — Docker Compose plugin** > Prefer the `docker compose …` syntax? > `sudo apt install docker-compose-plugin` --- ## 2 · Run Docker without sudo ```bash # create the group (no error if it already exists) sudo groupadd -f docker # add your user to it sudo usermod -aG docker "$USER" # reload group membership in the current shell newgrp docker ``` Verify: ```bash groups # should list “docker” docker info | grep Version # shows client/server versions ``` --- ## 3 · Launch the **Nextcloud AIO master container** ```bash docker run -d \ # detached ↩︎ --init \ --sig-proxy=false \ --name nextcloud-aio-mastercontainer \ --restart unless-stopped \ # auto-start on reboot ↩︎ -p 80:80 -p 8080:8080 -p 8443:8443 \ -v nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ ghcr.io/nextcloud-releases/all-in-one:latest ``` *(Swap `-d` for foreground mode if you want to watch logs.)* --- ## 4 · Open the AIO setup wizard ```bash curl -4 ifconfig.me # quick way to grab the VPS IPv4 ``` Browse to: ```text https://<YOUR-IP>:8443 ``` ![[Pasted image 20250422204518.png|650]] > **First-visit TLS warning:** > The wizard serves a self-signed cert; click **Advanced → Continue**. --- ## 5 · DNS & reverse proxy (optional, but recommended) * Create an **A/AAAA** record pointing your domain to the VPS. * Let the wizard request a Let’s Encrypt certificate **or** front everything with **Caddy** / **Traefik**. > A full DNS + HTTPS guide is beyond this mini how-to, but once your > record propagates the wizard can do the heavy lifting for you. --- ## 6 · Done! 🎉 You now have a plain-vanilla Nextcloud AIO stack running under Docker. Explore **Settings → AIO interface** to add services (Talk, ONLYOFFICE, etc.). ![[Pasted image 20250423001232.png|650]] --- ### Troubleshooting quick-refs | Symptom | Command | What to look for | |-------------------------|--------------------------------------------------------|-------------------------------| | Container won’t stay up | `docker ps -a` | Exit code / restart loop | | Can’t reach port 8443 | `sudo ufw status` | Open 80 / 8080 / 8443 | | Forgot setup token | `docker logs nextcloud-aio-mastercontainer \| grep -i token` | Copy the URL |