add microsocks

This commit is contained in:
kev 2021-10-15 17:38:05 +08:00
parent 36d5b1dc81
commit 261c004177
4 changed files with 40 additions and 0 deletions

View File

@ -239,6 +239,7 @@ A collection of delicious docker recipes.
- [x] haproxy-arm
- [x] i2pd :ru:
- [x] kcptun :cn:
- [x] microsocks
- [x] mtproxy
- [x] mysql-proxy
- [x] ngrok :+1:

21
microsocks/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
#
# Dockerfile for microsocks
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ENV MICROSOCKS_VERSION=1.0.2
ENV MICROSOCKS_FILE=microsocks-$MICROSOCKS_VERSION-x86_64-static.xz
ENV MICROSOCKS_URL=https://github.com/rofl0r/microsocks/releases/download/v$MICROSOCKS_VERSION/$MICROSOCKS_FILE
RUN set -xe \
&& apk add --no-cache curl xz \
&& cd /usr/local/bin \
&& curl -sSL $MICROSOCKS_URL | xz -d -c > microsocks \
&& chmod +x microsocks \
&& apk del curl xz
EXPOSE 1080
ENTRYPOINT ["microsocks"]
CMD ["-i", "0.0.0.0", "-p", "1080"]

11
microsocks/README.md Normal file
View File

@ -0,0 +1,11 @@
microsocks
==========
[MicroSocks][1] - multithreaded, small, efficient SOCKS5 server.
```bash
$ docker-compose up -d
$ curl -x socks5h://127.0.0.1:1080 ifconfig.co
```
[1]: https://github.com/rofl0r/microsocks

View File

@ -0,0 +1,7 @@
version: "3.8"
services:
microsocks:
image: vimagick/microsocks
ports:
- "1080:1080"
restart: unless-stopped