Current Seafile server version: 6.2.5
This docker image provides a fully-functional Seafile server installation that is configured with SQLite. Should be fully functional as is but has Traefik configuration in place.
- The container exposes a /data volume where all seafile data is stored in a persistent manner
- Initial setup is done during first startup where setup of the administator account is created. The administrator allows to create other users.
- No user interaction needed for container startup!
- Upgrades to new seafile versions are handled internally by automatically running seafile provided upgrade scripts
Create a docker-compose.yml
file:
seafile:
image: stonemaster/docker-seafile-server
container_name: seafile
ports:
- "443:443"
environment:
- SEAFILE_EXTERNAL_PORT=443
- SEAFILE_HOSTNAME=localhost
- SEAFILE_SERVER_NAME=myseafile
- SEAFILE_ADMIN_MAIL=admin@seafile.com
- SEAFILE_ADMIN_PASSWORD=test123
- USE_SSL=on
volumes:
- /tmp/seafile:/data
- ./test/ssl:/etc/ssl
Run docker-compose up -d
.
The following files are located inside the folder
that is mounted to /data
:
seafile_version
seahub-data
seafile-data
seahub.db
seahub-data
contains the internal seafile file structure
and thus the user data. seahub.db
contains the SQLite database
used for meta information by Seafile. seafile_version
is
generated by the container to store the current software
version for seamingless container upgrades. seafile-data
contains the actual user files.
This port must match the port that is exposed via Docker. It is used internally by Seafile to expose it to the client for file handling.
- default: automatic
- Options:
http
,https
Allows to override the protocol exposed by Seafile file server.
If USE_SSL
is to to on
this is automatically determined
to be https; otherwise it is http. However
if a HTTPs proxy is used in front of the seafile container
this may need to be adapted.
This hostname must match the host the Seafile instance
is running on. This hostname is exposed to clients
to allow file handling. If you get errors during file
uploads and downloads, check that SEAFILE_HOSTNAME
and
SEAFILE_EXTERNAL_PORT
match your setup.
The name of the seafile server instance needed by Seafile.
The administator's e-mail used during initial setup. The administrator is allowed to create other accounts.
The administator's password used during initial setup.
- default:
off
- Options:
on
,off
Enables HTTP (off
) or HTTPs (on
).
Boost License. See LICENSE.txt for more details.