This repository contains the sources that are used to build the h44z/seafile-ce docker image. Currently tested with Seafile CE 8.0.4.
The main goal of this image is to provide a really simple and clean docker image for Seafile Community Edition. The official docker image is quite complex and hard to extend or modify. This image instead provides a simple way to deploy a standardized Seafile instance with Docker.
Automated features that come with this Docker image:
It is largly based on this docker image: https://github.com/Gronis/docker-seafile.
To build the docker image, docker must be installed (at least version 18.02.0).
After the dependcies have been set up, change to the image directory and build the images using make:
# get the sources
git clone https://github.com/h44z/seafile-docker.git
cd seafile-docker
cp .env.dist .env
edit .env # if needed (for building, only the version is needed)
# build the image
cd image
make server
Make sure that you have installed Docker Compose with version 1.21.0 or higher. Setting up Seafile is really easy and can be (or should be) done via Docker Compose. All important data is stored under /seafile so you should be mounting a volume there (recommended), as shown in the example configurations, or at the respective subdirectories.
The first step is to create a .env file by copying the provided .env.dist file:
cp .env.dist .env
Mandatory ENV variables for auto setup
If you want to use MySQL/MariaDB, the following variables are needed:
Mandatory ENV variables for MySQL/MariaDB
Optional ENV variables for auto setup with MySQL/MariaDB
Using the MODE environment variable, the startup behaviour of the container can be managed, defaults to autorun.
A sample docker-compose file is provided within this repository.
This version of the image is designed to work with version 8.x.x. The previous version of this Docker image was based on the official Docker image, thus a few changes have to be made in order to upgrade to the new version.
Changes:
/shared to /seafile./seafile/current_version instead of /shared/seafile-data/current_version.Take a look at .env.dist for all available environment variables. Copy .env.dist to .env, uncomment and edit the variables as needed.
After the Seafile container has been started at least once, the mounted volume for the /seafile directory should contain a folder conf. Take a look at the official manual to check out which settings can be changed.
HINT: After the initial setup (first run), changing the environment variables in .env does not reflect to the configuration files!
You can run docker commands like "docker logs" or "docker exec" to find errors.
docker logs -f seafile
# or
docker exec -it seafile bash
Content type
Image
Digest
sha256:9f08e5b6a…
Size
490.7 MB
Last updated
almost 2 years ago
docker pull h44z/seafile-ce