Seafile server 安装记

@vrqq  November 21, 2025

服务器环境

CentOS Stream release 9
Seafile server 13 with docker

Step0 准备dnf安装一些软件

dnf install epel-release
dnf install podman podman-compose git vim

Step1 准备梯子

由于docker.io github等连接困难,因此需准备一份临时梯子
首先确保自己本地主机可以精品上网,假设局域网中有一http代理地址为http://192.168.122.1:20172
由于按流量计费 我们需要在linux上运行一份临时代理 而非使用ssh client提供的代理proxy

a) ssh到服务器时将本地http proxy端口透传给远程

ssh -R 20172:192.168.122.1:20172 ux1@remote.host

b) 设置临时http_proxy并安装v2sub

export http_proxy="http://127.0.0.1:20172"
export https_proxy="http://127.0.0.1:20172"

c) 安装v2ray和v2raysub
https://github.com/v2fly/v2ray-core/releases
https://github.com/12CrazyPaul21/v2raysub?tab=readme-ov-file

# Download v2ray linux x86_64 version and unzip to specific dir
mkdir -p /home/ux1/v2ray
cd /home/ux1/v2ray
wget https://github.com/v2fly/v2ray-core/releases/download/v5.41.0/v2ray-linux-64.zip
unzip v2ray-linux-64.zip

# set path env
export PATH=$PATH:/home/ux1/v2ray

# Install v2raysub to current user bin
pip install v2raysub

# Add subscribe and update
v2sub init
v2sub subscribe add https://my-v2ray-subscription-url
v2sub subscribe update

# select 'groups' then select a server in subscription, then start
v2sub node select
v2sub node start

# Then using 'export' command to set the new proxy, for example
# export http_proxy="http://127.0.0.1:23339"
# export https_proxy="http://127.0.0.1:23339"

Step2 准备podman-compose 并且运行之

参考https://cloud.seafile.com/wiki/publish/seafile-manual/hk5G/ 准备好.env文件

cd /opt/seafile
set -a
source .env
set +a
podman compose up -d

运行发现caddy启动不起来 报错如下

"level":"error","ts":1763741714.9799314,"logger":"docker-proxy","msg":"Docker ping failed","error":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"} Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

未完待续(换nginx或改配置)


添加新评论