docker部署网盘seafile
支持webdav
docker run
最简便办法
docker run -d \
--name seafile \
-p 8094:80 \
-p 8095:8080 \
-v ./seafile_data:/shared \
seafileltd/seafile:latest
# 端口关系解释
# 8080端口是seafile_data/seafile/conf/seafdav.conf文件打开dav功能时候用的https端口
# 初始化账户信息
#初始用户名:[email protected]
# 密码:asecret
配置绑定网址
更新 config files :
如果是通过cloudflare使用了https,请把https都带上
# 文件名 ccnet.conf
SERVICE_URL = https://seafile.example.com
# 文件名 seahub_settings.py
FILE_SERVER_ROOT ='https://seafile.example.com/seafhttp'
开启webdav
需要用到8080端口
https://cloud.seafile.com/published/seafile-manual-cn/extension/webdav.md
SeafDAV配置文件是/opt/seafile/conf/seafdav.conf
[WEBDAV]
# Default is false. Change it to true to enable SeafDAV server.
enabled = true
port = 8080
# If you deploy seafdav behind nginx/apache, you need to modify "share_name".
share_name = /
# /seafdav 如果后面设置了/seafdav 那webdav的连接地址就是0.0.0.0:8080/seafdav
重启容器
docker compose
services:
db:
image: mariadb:10.11
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=PASSWORD
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- ./seafile-mysql/db:/var/lib/mysql
networks:
- seafile-net
memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
seafile:
image: seafileltd/seafile-mc:11.0-latest
container_name: seafile
ports:
- "8093:80"
- "8094:443"
volumes:
- ./seafile-data:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=PASSWORD
- TIME_ZONE=-Asia/Seoul
- [email protected]
- SEAFILE_ADMIN_PASSWORD=asecret
- SEAFILE_SERVER_HOSTNAME=omogaryfiles.lararu.com
- SEAFILE_SERVER_LETSENCRYPT=false
- FORCE_HTTPS_IN_CONF=false
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net:
License:
CC BY 4.0