MirrorNest
← すべてのガイド

Nextcloud

Self-hosted file sync, sharing, and collaboration suite — your own private Dropbox/Google Drive.

対象: Ubuntu 22.04 LTS (Docker)CollaborationStorage公式ホームページ ↗公式ドキュメント ↗
このガイドは上記リンク先にあるNextcloud公式ドキュメントをもとに作成されています。ディストリビューションやプロジェクトのバージョンは時間とともに変わるため、本番サーバーでこれらのコマンドを実行する前に、必ず公式ドキュメントで正確なパッケージ名・バージョン名を確認してください。
  1. 1Install Docker and Docker Compose

    Follow Docker's own official install guide for Ubuntu if not already installed.

  2. 2Create a docker-compose.yml

    The official AIO (All-in-One) image is Nextcloud's own recommended way to self-host — it bundles the app, database, and reverse proxy with automatic HTTPS.

    mkdir nextcloud-aio && cd nextcloud-aio
    docker run --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 8080:8080 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro nextcloud/all-in-one:latest
  3. 3Finish setup in the browser

    Open https://your-server-ip:8080 — the AIO interface walks you through domain setup, backups, and starting all the bundled containers.

    AIO needs a real domain name with a valid certificate for its automatic HTTPS to work — a bare IP address will not fully work for the end-user-facing Nextcloud interface.