Skip to content

SS with v2ray plugin

cary-sas edited this page Jun 26, 2022 · 3 revisions

项目地址:
https://github.com/Acris/docker-shadowsocks-libev

申请证书:

curl https://get.acme.sh | sh && source  ~/.bashrc 
~/.acme.sh/acme.sh --upgrade --auto-upgrade
~/.acme.sh/acme.sh --register-account -m my@example.com
~/.acme.sh/acme.sh --force --issue -d $domain --standalone

拉取镜像

docker pull acrisliu/shadowsocks-libev

创建 docker-compose 文件

vim /root/docker-compose.yml

# 输入修改相应内容输入以下,
version: "3.7"
services:
  shadowsocks-libev:
    container_name: shadowsocks-libev
    image: acrisliu/shadowsocks-libev
    user: root
    ports:
      - "8388:8388/tcp"
      - "8388:8388/udp"
    volumes:
      - /root/.acme.sh:/root/.acme.sh:ro
    environment:
      - PASSWORD=YourPassword
      - ARGS=--plugin v2ray-plugin --plugin-opts server;tls;host=yourdomain.com;path=/v2ray;cert=/root/.acme.sh/yourdomain.com/fullchain.cer;key=/root/.acme.sh/yourdomain.com/yourdomain.com.key -u
    restart: always

保存后执行以下

docker-compose up -d

参考文献:
https://shingle.me/post/%E7%BB%99ss%E5%8A%A0%E4%B8%8Av2ray-plugin/
https://github.com/Acris/docker-shadowsocks-libev