参考链接地址: https://zhujiget.com/4501.html
地址: https://my.vultr.com/
地址: https://dcc.godaddy.com/manage/vpc123.xyz/dns
地址: https://dash.cloudflare.com/bd6994478248bda80c8d245f45c98b15/configurations
参考地址: https://doc.sprov.xyz/docker/docker-tutorial
$yum install -y yum-utils
$yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
$yum install docker-ce docker-ce-cli containerd.io -y
$systemctl start docker
$systemctl enable docker
$curl -L "https://github.com/docker/compose/releases/download/1.26.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$chmod +x /usr/local/bin/docker-compose
$mkdir /root/soga
$cd /root/soga
$touch docker-compose.yml
version: "3"
services:
soga:
image: sprov065/soga:latest
restart: on-failure
ports:
- "80:80"
- "443:443"
environment:
type: v2board
server_type: trojan
api: webapi
webapi_url: https://v2b.vpc123.xyz/
webapi_mukey: 12345678901qazxs
node_id: 8
cert_domain: soga002.vpc123.xyz
cert_mode: http
force_close_ssl: 'false' # 填写 false 或 true 参数值时需要加引号
forbidden_bit_torrent: 'true' # 填写 false 或 true 参数值时需要加引号
volumes:
- "/etc/soga/:/etc/soga/"
$mkdir /etc/soga
$touch /etc/soga/soga.config
type=v2board
server_type=trojan
api=webapi
webapi_url=https://v2b.vpc123.xyz/
webapi_mukey=xxxxxxxxxx
db_host=107.148.xxx.xxx
db_port=33306
db_name=soga002
db_user=root
db_password=lys!QAZ1qaz
node_id=8
soga_key=
user_conn_limit=0
user_speed_limit=0
check_interval=100
cert_mode=http
cert_domain=soga002.vpc123.xyz
dns_provider=8.8.8.8,1.1.1.1
force_close_ssl=false
forbidden_bit_torrent=false
dns_cache_time=10
auto_update=false
$docker-compose up # 前台启动soga,主要观察日志使用
$docker-compose up -d # 后台启动soga,长期运行
$docker-compose logs --tail=500 # 截取输出最后500行日志
$docker-compose down # 停止并删除容器
$docker-compose restart # 重启
$docker-compose pull