seafile私网网盘部署

介绍

私有化网盘

官网: Download - Seafile

docker compose部署

seafile服务端

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '2.0'
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=123456 # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- /data/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net

memcached:
image: memcached:1.6
container_name: seafile-memcached
restart: always
entrypoint: memcached -m 256
networks:
- seafile-net

seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
restart: always
ports:
- "9091:80"
# - "443:443" # If https is enabled, cancel the comment.
volumes:
- /data/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=123456 # Requested, the value shuold be root's password of MySQL service.
# - TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=root # Specifies Seafile admin user, default is 'me@example.com'.
- SEAFILE_ADMIN_PASSWORD=moxigame.ops # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether use letsencrypt to generate cert.
- SEAFILE_SERVER_HOSTNAME=10.0.1.120:9091 # Specifies your host name.
depends_on:
- db
- memcached
networks:
- seafile-net

networks:
seafile-net:

客户端,用于远程挂在服务端目录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#添加yum源
cat > /etc/yum.repos.d/seafile.repo <<EOF
[seafile]
name=seafile
baseurl=https://linux-clients.seafile.com/seafile-rpm/centos7
gpgcheck=0
enabled=1
EOF

#下载
yum install -y epel-release
yum install -y seafile --enablerepo=cr

#同步例子
seaf-cli sync -l 89bc091d-f36e-4bbd-9144-8e13c45ca32a -s http://192.168.1.1/ -d phone -u test@admin.com

操作

适用于 CLI 服务器的海文件客户端 - 海文件用户手册 (seafile.com)


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!