curl -fsSL get.docker.com | sh
curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
yum -y install epel-release
yum -y install python-pip
pip install docker-compose
下载 go 版 caddy-go.zip
wget https://github.com/kszym2002/ssrpanel-be/releases/download/caddy-go/caddy-go.zip
unzip caddy-go.zip -d caddy
cd /root/caddy
vi /root/caddy/ssrmu/usermysql.json
改成
{
"host": "ip",
"port": 3306,
"user": "ssrpanel",
"password": "ssrpanel",
"db": "ssrpanel",
"node_id": 1,
"transfer_mul": 1.0,
"ssl_enable": 0,
"ssl_ca": "",
"ssl_cert": "",
"ssl_key": ""
}
docker-compose up -d ssrmu