Acris / docker-shadowsocks-libev

Build a docker image for shadowsocks-libev with v2ray-plugin, based on Alpine Linux.
https://hub.docker.com/r/acrisliu/shadowsocks-libev/
MIT License
303 stars 96 forks source link

Questions about adding V2ray plugin from noob #6

Closed KinseyWang closed 5 years ago

KinseyWang commented 5 years ago

I see following codes, but what do "yourdomain.com" and "YourPassword" mean? is this my ss server ip address and password? or the v2ray server address and password?

docker run -d \ -e "ARGS=--plugin v2ray-plugin --plugin-opts server;tls;host=yourdomain.com -u" \ -e PASSWORD=YourPassword \ -v /home/username/.acme.sh:/root/.acme.sh \ --name=shadowsocks-libev \ -p 8388:8388/tcp \ -p 8388:8388/udp \ --restart=always \ acrisliu/shadowsocks-libev

And how to use docker-compose? sorry for the questions you might think it's stupid...I don't know all of this until today...

Acris commented 5 years ago

v2ray-plugin is a SIP003 plugin for shadowsocks, based on v2ray, for more detail you can see https://github.com/shadowsocks/v2ray-plugin.

To use docker-compose, install it from https://docs.docker.com/compose/install/, then use the following docker-compose.yml file:

version: "3.7"
services:
  shadowsocks-libev:
    container_name: shadowsocks-libev
    image: acrisliu/shadowsocks-libev:latest
    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/yourdomain.com.cer;key=/root/.acme.sh/yourdomain.com/yourdomain.com.key -u
    restart: always

Then use docker-compose up -d to create and start the container.

KinseyWang commented 5 years ago

Hi Acris,

Thanks for your information. I couldn't find any information understandable in the /shadowsocks/v2ray-plugin. So, is the parameters of host and password the same with my ss-sever?

Does the acme.sh need a domain name to enable this? I don't have a domain name yet...

Acris commented 5 years ago

About shadowsocks, v2ray-plugin and simple-obfs, you can see https://github.com/shadowsocks/v2ray-plugin/issues/31

Yes, v2ray-plugin needs a domain name to use, you can get a free domain name from http://freenom.com/ for temporary use.

Acris commented 5 years ago

Issue closed, feel free to re-open it if needed.