Seafile

Runs Seafile with persistent shared storage and initial admin account settings. This template is useful for self-hosted file syncing and sharing when you want a lightweight service focused on documents and team files.

yaml

docker-compose.yml

services:
  seafile:
    image: seafileltd/seafile-mc:11.0-latest
    restart: unless-stopped
    ports:
      - ${SEAFILE_HTTP_PORT}:80
    environment:
      SEAFILE_SERVER_HOSTNAME: ${SEAFILE_SERVER_HOSTNAME}
      SEAFILE_ADMIN_EMAIL: ${SEAFILE_ADMIN_EMAIL}
      SEAFILE_ADMIN_PASSWORD: ${SEAFILE_ADMIN_PASSWORD}
    volumes:
      - seafile_data:/shared
volumes:
  seafile_data:

.ENV

.env example

SEAFILE_SERVER_HOSTNAME=localhost
SEAFILE_ADMIN_EMAIL=[email protected]
SEAFILE_ADMIN_PASSWORD=change-me-now
SEAFILE_HTTP_PORT=80

deployment

Quick Start

  1. Create a working directory named after the service.
  2. Copy the compose file and generated `.env` into that directory.
  3. Review the variables and replace placeholders with real values.
  4. Run `docker compose up -d`.
mkdir seafile
cd seafile
# create docker-compose.yml
# create .env
docker compose up -d