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
- Create a working directory named after the service.
- Copy the compose file and generated `.env` into that directory.
- Review the variables and replace placeholders with real values.
- Run `docker compose up -d`.
mkdir seafile
cd seafile
# create docker-compose.yml
# create .env
docker compose up -d