sudo yum install -y docker
sudo service docker start
sudo groupadd docker
sudo usermod -aG docker $USER
sudo gpasswd -a $USER docker
sudo setfacl -m user:$USER:rw /var/run/docker.sock
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
cd clients
docker-compose up -d
git clone https://github.com/kopinions/v2ray.git ~/.v2ray
curl -sjklL https://github.com/v2ray/v2ray-core/releases/download/v4.23.1/v2ray-macos.zip -o /tmp/v2ray.zip
unzip -fd ~/.local/bin/ /tmp/v2ray.zip
cat clients/com.kopinions.v2ray.plist |envsubst |sudo tee ~/Library/LaunchAgents/com.kopinions.v2ray.plist
npm install && npm run template
sudo chown root:whell ~/Library/LaunchAgents/com.kopinions.v2ray.plist
sudo launchctl load ~/Library/LaunchAgents/com.kopinions.v2ray.plist
- 需要打开 80 端口(应为需要 letsencrypt)
- 将对应域名映射到服务器 IP 上
- 需要安装 git
cd servers
docker-compose up -d