Public | Automated Build

Last pushed: 9 months ago
Short Description
Seafile runtime environment
Full Description

seafile-runtime

Seafile runtime environment

Usage

  1. Download and unpack seafile

    mkdir -p /var/docker/seafile/installed && cd /var/docker/seafile
    wget -P installed/ http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.0.8_x86-64.tar.gz
    tar xvf installed/seafile-server_6.0.8_x86-64.tar.gz
    
  2. Setup the seafile

    docker run --rm -v /var/docker/seafile:/haiwen -it athurg/seafile-runtime /haiwen/seafile-server-6.0.8/setup-seafile-mysql.sh
    
  3. Run seafile once with a Pseudo-TTY, setup admin user/password with prompt

    docker run --rm -it -v /var/docker/seafile:/haiwen athurg/seafile-runtime /haiwen/seafile-server-6.0.8/seahub.sh start
    
  4. Then, you can run your seafile as below

    docker run --name seafile -d -p 8000:8000 -p 8002:8002 -v /haiwen:/haiwen -d athurg/seafile-runtime
    

FAQ

If you got 500 error code while request to /api2/ping, it may be caused by SeaHub failed with backend cache.

Just add the following config code into conf/seahub_settings.py

CACHES = {
    'default': {
        'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
        'LOCATION': '127.0.0.1:11211',
    }
}

Refer: https://manual-cn.seafile.com/deploy/add_memcached.html

Docker Pull Command
Owner
athurg
Source Repository