All Projects → Acris → Docker Shadowsocks Libev

Acris / Docker Shadowsocks Libev

Licence: mit
Build a docker image for shadowsocks-libev with v2ray-plugin, based on Alpine Linux.

Projects that are alternatives of or similar to Docker Shadowsocks Libev

Dcind
Docker image with Docker Compose. Useful as a base image for integration tests in Concourse CI.
Stars: ✭ 128 (-38.46%)
Mutual labels:  alpine
Pieman
Script for creating custom OS images for single-board computers
Stars: ✭ 149 (-28.37%)
Mutual labels:  alpine
Shadowsocks With V2ray Plugin Install
Auto install shadowsocks-libev and v2ray-plugin.
Stars: ✭ 183 (-12.02%)
Mutual labels:  shadowsocks-libev
Docker Clamav
Multi-arch dockerized open source antivirus for use with file sharing containers, REST API or TCP.
Stars: ✭ 133 (-36.06%)
Mutual labels:  alpine
Dockerfiles
Phalcon Dockerfiles used for internal purposes.
Stars: ✭ 145 (-30.29%)
Mutual labels:  alpine
Docker Elasticsearch Alpine
Alpine Linux based Elasticsearch Docker Image
Stars: ✭ 154 (-25.96%)
Mutual labels:  alpine
Ipxe Buildweb
iPXE Prebuilt binary web interface
Stars: ✭ 119 (-42.79%)
Mutual labels:  alpine
Alpine Node
Minimal Node.js Docker Images built on Alpine Linux
Stars: ✭ 2,402 (+1054.81%)
Mutual labels:  alpine
Docker Github Pages
🐳 Alpine Docker Image for GitHub Pages and Jekyll powered sites
Stars: ✭ 147 (-29.33%)
Mutual labels:  alpine
Alpine Sqs
Dockerized ElasticMQ server + web UI over Alpine Linux for local development
Stars: ✭ 183 (-12.02%)
Mutual labels:  alpine
Vagrant Alpine
Vagrant plugin for Alpine Linux Guest
Stars: ✭ 137 (-34.13%)
Mutual labels:  alpine
Asterisk
Asterisk PBX in Docker on Alpine Linux. Smallest Asterisk ever! ;)
Stars: ✭ 145 (-30.29%)
Mutual labels:  alpine
Dockerfile
some personally made dockerfile
Stars: ✭ 2,021 (+871.63%)
Mutual labels:  alpine
Kunteng Lede 17.01.4
或许是大中华区编译最快的LEDE 17.01.4开发环境
Stars: ✭ 133 (-36.06%)
Mutual labels:  shadowsocks-libev
Docker Shadowsocks Libev
✈️ Dockerfiles for shadowsocks-libev server and client (on x86 and arm)
Stars: ✭ 188 (-9.62%)
Mutual labels:  shadowsocks-libev
Docker Rails Base
Optimized Docker base images for Rails applications
Stars: ✭ 120 (-42.31%)
Mutual labels:  alpine
Tmoe Linux
🍭Without any basic knowledge of linux shell,you can easily install and configure a GNU/Linux graphical desktop environment on 📱Android termux and 💻WSL .🍰You can also run VSCode on your android phone.🍹Graphical qemu manager,🐋support running docker on Android.配置WSL和安卓手机的linux容器,桌面环境,主题美化,远程桌面,音频服务,镜像源,uefi开机启动项,webdav(nginx),fcitx输入法以及qemu-system虚拟机...
Stars: ✭ 149 (-28.37%)
Mutual labels:  alpine
Docker4php
Docker-based PHP stack
Stars: ✭ 210 (+0.96%)
Mutual labels:  alpine
Alpinejs Devtools
Chrome/Firefox DevTools extension for debugging Alpine.js applications.
Stars: ✭ 199 (-4.33%)
Mutual labels:  alpine
Docker Android Sdk
Stars: ✭ 171 (-17.79%)
Mutual labels:  alpine

Shadowsocks-libev Dockerfile

This Dockerfile build an image for shadowsocks-libev with v2ray-plugin, based on Alpine Linux.

Current version:

  • shadowsocks-libev: v3.3.5
  • v2ray-plugin: v1.3.1

Quick Start

Get the docker image by running the following commands:

docker pull acrisliu/shadowsocks-libev

Start a instance:

docker run -d --name=shadowsocks-libev -p 8388:8388/tcp -p 8388:8388/udp --restart=always acrisliu/shadowsocks-libev

Setting a specific configration

You can use environment variables to specific configration.

For example, start a container with encrypt method aes-256-gcm and password YourPassword:

docker run -d \
-e METHOD=aes-256-gcm \
-e PASSWORD=YourPassword \
--name=shadowsocks-libev \
-p 8388:8388/tcp \
-p 8388:8388/udp \
--restart=always \
acrisliu/shadowsocks-libev

Available environment variables and default values:

  • SERVER_ADDRS: Host name or ip address of your remote server, default value is 0.0.0.0.
  • SERVER_PORT: Port number of your remote server, default value is 8388.
  • PASSWORD: Password of your remote server, default value is ChangeMe!!!.
  • METHOD: Encrypt method, default value is chacha20-ietf-poly1305.
  • TIMEOUT: Socket timeout in seconds, default value is 86400.
  • DNS_ADDRS: Setup name servers for internal DNS resolver, default value is 1.1.1.1,1.0.0.1.
  • ARGS: Additional arguments supported by ss-server, default value is -u, to enable UDP relay.

Enable v2ray-plugin

By default, v2ray-plugin is disabled, use ARGS environment variable with --plugin, --plugin-opts arguments to enable it.

For example, if you want to enable v2ray-plugin with TLS mode and enable UDP relay:

docker run -d \
-e "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" \
-e PASSWORD=YourPassword \
-v /root/.acme.sh:/root/.acme.sh \
--user root \
--name=shadowsocks-libev \
-p 8388:8388/tcp \
-p 8388:8388/udp \
--restart=always \
acrisliu/shadowsocks-libev

Enable v2ray-plugin with QUIC mode:

docker run -d \
-e "ARGS=--plugin v2ray-plugin --plugin-opts server;mode=quic;host=yourdomain.com;path=/v2ray;cert=/root/.acme.sh/yourdomain.com/fullchain.cer;key=/root/.acme.sh/yourdomain.com/yourdomain.com.key" \
-e PASSWORD=YourPassword \
-v /root/.acme.sh:/root/.acme.sh \
--user root \
--name=shadowsocks-libev \
-p 8388:8388/tcp \
-p 8388:8388/udp \
--restart=always \
acrisliu/shadowsocks-libev

Attentions: if you want to enable v2ray-plugin QUIC mode, you must disable the UDP relay of ss-server, without -u argument in ARGS.

Remember mount your certs to container, recommend use acme.sh to issue certs.

For more v2ray-plugin configrations please go to v2ray plugin docs

With docker-compose

docker-compose.yml:

version: "3.7"
services:
  shadowsocks-libev:
    container_name: shadowsocks-libev
    image: acrisliu/shadowsocks-libev:latest
    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

How to upgrade

Just use bellow commands:

# Pull the latest image
docker pull acrisliu/shadowsocks-libev
# Stop and remove old container
docker stop shadowsocks-libev
docker rm shadowsocks-libev
# Start a new container with the latest image
docker run -d \
-e PASSWORD=YourPassword \
--name=shadowsocks-libev \
-p 8388:8388/tcp \
-p 8388:8388/udp \
--restart=always \
acrisliu/shadowsocks-libev
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].