Seafile docker image for swift setup
- prepare docker-compose.yml (see example below)
- start the system with
docker-compose up -d
- see
docker-compose logs mysql
to find out mysql root password (if you did not set it in docker-compose.override.yml) - perform initial setup with
docker-compose exec seafile setup
(this will ask you for mysql root password)
version: '2'
services:
seafile:
image: ghcr.io/foxel/seafile-docker/seafile:11.0.12
ports:
- "9080:80"
environment:
SEAFILE_URL: 'http://seafile.example.com'
links:
- mysql
volumes:
- seafile:/seafile
mysql:
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
volumes:
- mysql:/var/lib/mysql
image: mysql:8.0
volumes:
mysql:
driver: local
seafile:
driver: local
Upgrading is possible in step-by-step manner:
docker-compose exec seafile /scripts/upgrade.sh 11.0.0
Notes:
- version 11 requires MySQL 8. Note the updated version in compose file example above. The container will do the upgrade on first start.
- django 4 uses new CSRF token security policy. Make sure the SSL termination is set up to correctly set
X-Forwarded-Proto
andHost
headers.
docker-compose exec seafile /scripts/upgrade.sh 10.0.0
docker-compose exec seafile /scripts/upgrade.sh 9.0.0
docker-compose exec seafile /scripts/upgrade.sh 8.0.0
docker-compose exec seafile /scripts/upgrade.sh 7.1.0
docker-compose exec seafile /scripts/upgrade.sh 7.0.0
docker-compose exec seafile /scripts/upgrade.sh 6.3.0
docker-compose exec seafile /scripts/upgrade.sh 6.2.0
docker-compose exec seafile /scripts/upgrade.sh 6.1.0
docker-compose exec seafile /scripts/upgrade.sh 6.0.0