Skip to content

foxel/seafile-docker

Repository files navigation

seafile-docker

Seafile docker image for swift setup

Getting started (docker-compose 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)

docker-compose.yml example

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

Upgrading is possible in step-by-step manner:

10.0.x => 11.0.x

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 and Host headers.

9.0.x => 10.0.x

docker-compose exec seafile /scripts/upgrade.sh 10.0.0

8.0.x => 9.0.x

docker-compose exec seafile /scripts/upgrade.sh 9.0.0

7.1.x => 8.0.x

docker-compose exec seafile /scripts/upgrade.sh 8.0.0

7.0.x => 7.1.x

docker-compose exec seafile /scripts/upgrade.sh 7.1.0

6.3.x => 7.0.x

docker-compose exec seafile /scripts/upgrade.sh 7.0.0

6.2.x => 6.3.x

docker-compose exec seafile /scripts/upgrade.sh 6.3.0

6.1.x => 6.2.x

docker-compose exec seafile /scripts/upgrade.sh 6.2.0

6.0.x => 6.1.x

docker-compose exec seafile /scripts/upgrade.sh 6.1.0

5.1.x => 6.0.x

docker-compose exec seafile /scripts/upgrade.sh 6.0.0