创建一下安装的目录
mkdir -p /root/data/docker_data/ss
cd /root/data/docker_data/ss
nano docker-compose.yml
注意修改自己的信息
version: '3'
services:
shadowsocks:
container_name: shadowsocks
image: gists/shadowsocks-libev
environment:
- PASSWORD=passowrd
- METHOD=aes-128-gcm
- SERVER_PORT=8388
volumes:
- /etc/localtime:/etc/localtime:ro
networks:
overlay:
restart: always
xray-plugin:
container_name: xray-plugin
image: gists/xray-plugin
ports:
- "443:443/tcp"
volumes:
- ./certs:/certs
- /etc/localtime:/etc/localtime:ro
command: xray-plugin -server -localAddr 0.0.0.0 -localPort 443 -remoteAddr shadowsocks -remotePort 8388 -mode websocket -mux=1 -tls -host=domain.com -cert=/certs/domain.cert -key=/certs/domain.key
depends_on:
- shadowsocks
networks:
overlay:
restart: always
networks:
overlay:
driver: bridge
运行
docker-compose up -d
正文完
发表至: 开源脚本
2023-02-22