Skip to main content

Command Palette

Search for a command to run...

Deploying Seafile Secure File Sync on Ubuntu 24.04

Step-by-step guide to deploy Seafile CE with the official Compose manifests on Ubuntu 24.04, including SeaDoc collaboration and Caddy reverse proxy with automatic HTTPS.

Updated
2 min read
Deploying Seafile Secure File Sync on Ubuntu 24.04
S
A Developer Advocate with a focus on improving the developer experience through clear communication, technical enablement, and community engagement.
A
DevOps Engineer with experience in Kubernetes, automation, cloud infrastructure, and observability. I work in Developer Relations, contribute to technical documentation, and collaborate on engineering-focused projects.

Seafile is an open-source file sync and share platform focused on speed, reliability, and end-to-end encrypted libraries, with desktop and mobile clients across every major platform. This guide deploys Seafile CE on Ubuntu 24.04 using the official Docker Compose manifests, the SeaDoc collaboration service, and Caddy for automatic HTTPS, following secure file sync deployment practices documented in Vultr Docs.


Set Up the Directory Structure

1. Create and own the install directory:

sudo mkdir -p /opt/seafile
sudo chown -R \(USER:\)USER /opt/seafile
cd /opt/seafile

2. Download the environment template:

wget -O .env https://manual.seafile.com/latest/repo/docker/ce/env

3. Generate a 40-character JWT key:

sudo apt install pwgen -y
pwgen -s 40 1

4. Edit the environment file:

nano .env

Set at minimum:

SEAFILE_SERVER_HOSTNAME=seafile.example.com
SEAFILE_SERVER_PROTOCOL=https
JWT_PRIVATE_KEY=YOUR_40_CHAR_KEY
SEAFILE_MYSQL_DB_PASSWORD=STRONG_DB_PASSWORD
INIT_SEAFILE_MYSQL_ROOT_PASSWORD=STRONG_ROOT_PASSWORD
INIT_SEAFILE_ADMIN_EMAIL=admin@example.com
INIT_SEAFILE_ADMIN_PASSWORD=STRONG_ADMIN_PASSWORD

Download the Compose Manifests

Seafile ships three official Compose files. Download them into the same directory:

wget https://manual.seafile.com/latest/repo/docker/ce/seafile-server.yml
wget https://manual.seafile.com/latest/repo/docker/seadoc.yml
wget https://manual.seafile.com/latest/repo/docker/caddy.yml
  • seafile-server.yml — core Seafile, MariaDB, Memcached

  • seadoc.yml — collaborative document editor

  • caddy.yml — reverse proxy with automatic Let's Encrypt TLS


Deploy with Docker Compose

1. Add your user to the Docker group:

sudo usermod -aG docker $USER
newgrp docker

2. Start all three manifests together:

docker compose up -d

3. Verify the services are running:

docker compose ps

The first start initializes the MariaDB schema and Seafile data directories — give it a minute.


Access Seafile

Open https://seafile.example.com in a browser and sign in with INIT_SEAFILE_ADMIN_EMAIL / INIT_SEAFILE_ADMIN_PASSWORD from .env. Create a library to begin syncing.


Next Steps

Seafile is running and served securely over HTTPS. From here you can:

  • Install the desktop and mobile clients for two-way library sync

  • Create encrypted libraries for client-side end-to-end encryption

  • Enable SeaDoc collaborative editing on documents inside libraries

For the full guide with additional tips, visit the original article on Vultr Docs.

The Self-Hosted Stack

Part 40 of 50

The Self-Hosted Stack is a developer-focused series exploring open-source tools you can deploy, run, and manage on your own infrastructure. From AI platforms and databases to developer tools, observability stacks, and authentication systems, each guide walks through deploying production-ready open-source software on Vultr cloud infrastructure.

Up next

Deploying Vector High-Performance Observability Data Pipeline on Ubuntu 24.04

Step-by-step guide to deploy Vector with Docker Compose and Traefik on Ubuntu 24.04, with a working sources-transforms-sinks pipeline and automatic HTTPS for the ingest endpoint.

More from this blog

V

Vultr

71 posts

Vultr is a global cloud infrastructure provider trusted by developers and businesses in 185+ countries. We publishe hands-on guides spanning Linux administration, server configuration, DevOps, networking, open source stacks, AI code agents, and Vultr product walkthroughs, all tested against real cloud environments and built for engineers who ship.