docker-compose 一键shadowsocks-libev+xray

创建一下安装的目录

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

正文完
 0
admin
版权声明:本站原创文章,由 admin 于2023-02-22发表,共计744字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。