Docker Compose 安装 Shadowsocks

1. 新建docker-compose.yml

version: '3'

services:
    shadowsocks:
        container_name: shadowsocks
        image: shadowsocks/shadowsocks-libev
        ports:
            - "请输入端口:8388"
        restart: always
        environment:
            TZ: Asia/Shanghai
            PASSWORD: 请输入密码
            SERVER_ADDR: 0.0.0.0
            SERVER_ADDR_IPV6: ::0
            METHOD: chacha20-ietf-poly1305
            TIMEOUT: 300
            DNS_ADDRS: 8.8.8.8,8.8.4.4

2. 创建并启动容器

docker-compose up -d

未经允许不得转载:君子如兰 » Docker Compose 安装 Shadowsocks

赞 (0)