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: foxel/seafile:8.0.6
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:5.7
volumes:
mysql:
driver: local
seafile:
driver: local
Upgrading is possible in step-by-step manner:
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