MirrorNest
← Tous les guides

Seafile

Seafile is a high-performance, self-hosted file sync and share platform (a self-hosted Dropbox alternative) with optional client-side encrypted libraries and built-in online document editing via SeaDoc.

Système : Any Docker hostStorageFile SyncSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de Seafile, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
  1. 1Check prerequisites

    Seafile Community Edition needs Docker plus Docker Compose 2.30.0 or newer, and at least 2GB RAM and a 2-core CPU.

    docker --version
    docker compose version
  2. 2Download the Compose files

    Create a deployment directory and fetch the official env file and Compose manifests for the current release line (13.0).

    mkdir /opt/seafile && cd /opt/seafile
    wget -O .env https://manual.seafile.com/13.0/repo/docker/ce/env
    wget https://manual.seafile.com/13.0/repo/docker/ce/seafile-server.yml
    wget https://manual.seafile.com/13.0/repo/docker/seadoc.yml
    wget https://manual.seafile.com/13.0/repo/docker/caddy.yml
  3. 3Configure the .env file

    Edit .env and set at minimum SEAFILE_SERVER_HOSTNAME, INIT_SEAFILE_ADMIN_EMAIL, INIT_SEAFILE_ADMIN_PASSWORD, SEAFILE_MYSQL_DB_PASSWORD, and a random 32+ character JWT_PRIVATE_KEY.

    These values are only applied on first startup — changing .env afterwards does not update an already-initialized deployment.

  4. 4Start Seafile

    docker compose up -d
  5. 5First login

    Data is persisted under /opt/seafile-data and /opt/seafile-mysql/db. Seahub listens on port 8000 by default (proxied by the bundled Caddy on 80/443).

    Log in at http://your-domain with the INIT_SEAFILE_ADMIN_EMAIL / INIT_SEAFILE_ADMIN_PASSWORD you set in .env.