MirrorNest
← Todos os guias

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.

Destino: Any Docker hostStorageFile SyncSite oficial ↗Documentação oficial ↗
Este guia foi elaborado a partir da documentação oficial do Seafile, ligada acima — verifique sempre lá os nomes exatos dos pacotes/versões antes de executar estes comandos num servidor de produção, uma vez que as versões da distribuição e do projeto mudam com o tempo.
  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.