mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add outline-ss-server
This commit is contained in:
parent
ca6f8061ac
commit
148ef2f4bc
@ -257,6 +257,7 @@ A collection of delicious docker recipes.
|
||||
- [x] mysql-proxy
|
||||
- [x] ngrok :+1:
|
||||
- [x] obfsproxy
|
||||
- [x] outline-ss-server
|
||||
- [x] polipo
|
||||
- [x] privoxy
|
||||
- [x] privoxy-arm
|
||||
|
29
outline-ss-server/Dockerfile
Normal file
29
outline-ss-server/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
#
|
||||
# Dockerfile for outline-ss-server
|
||||
#
|
||||
|
||||
FROM alpine:3
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ARG OUTLINE_SS_SERVER_VERSION=1.4.0
|
||||
ARG OUTLINE_SS_SERVER_FILE=outline-ss-server_${OUTLINE_SS_SERVER_VERSION}_linux_x86_64.tar.gz
|
||||
ARG OUTLINE_SS_SERVER_URL=https://github.com/Jigsaw-Code/outline-ss-server/releases/download/v${OUTLINE_SS_SERVER_VERSION}/${OUTLINE_SS_SERVER_FILE}
|
||||
|
||||
ARG IP_COUNTRY_MMDB_VERSION=2023-06
|
||||
ARG IP_COUNTRY_MMDB_URL=https://download.db-ip.com/free/dbip-country-lite-${IP_COUNTRY_MMDB_VERSION}.mmdb.gz
|
||||
ARG IP_COUNTRY_MMDB_FILE=ip-country.mmdb
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache curl tar \
|
||||
&& mkdir -p bin etc var \
|
||||
&& curl -sSL ${OUTLINE_SS_SERVER_URL} | tar xz -C bin outline-ss-server \
|
||||
&& curl -sSL ${IP_COUNTRY_MMDB_URL} | gunzip -c > var/${IP_COUNTRY_MMDB_FILE} \
|
||||
&& /app/bin/outline-ss-server -version \
|
||||
&& apk del curl tar
|
||||
|
||||
EXPOSE 9092
|
||||
|
||||
ENTRYPOINT ["/app/bin/outline-ss-server"]
|
||||
CMD ["-config=etc/config.yml", "-ip_country_db=var/ip-country.mmdb", "-metrics=0.0.0.0:9092", "-replay_history=10000"]
|
21
outline-ss-server/README.md
Normal file
21
outline-ss-server/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
outline-ss-server
|
||||
=================
|
||||
|
||||
The [Outline Shadowsocks service][1] allows for:
|
||||
|
||||
- Multiple users on a single port.
|
||||
- Does so by trying all the different credentials until one succeeds.
|
||||
- Multiple ports
|
||||
- Whitebox monitoring of the service using prometheus.io
|
||||
- Includes traffic measurements and other health indicators.
|
||||
- Live updates via config change + SIGHUP
|
||||
- Replay defense (add `--replay_history 10000`).
|
||||
|
||||
## up and running
|
||||
|
||||
```bash
|
||||
$ docker compose up -d
|
||||
$ curl -s http://127.0.0.1:9092/metrics
|
||||
```
|
||||
|
||||
[1]: https://github.com/Jigsaw-Code/outline-ss-server
|
9
outline-ss-server/data/config.yml
Normal file
9
outline-ss-server/data/config.yml
Normal file
@ -0,0 +1,9 @@
|
||||
keys:
|
||||
- id: foo
|
||||
port: 8388
|
||||
cipher: chacha20-ietf-poly1305
|
||||
secret: Thi8aoqu8Tha
|
||||
- id: bar
|
||||
port: 8388
|
||||
cipher: chacha20-ietf-poly1305
|
||||
secret: mAequ6Hied8M
|
11
outline-ss-server/docker-compose.yml
Normal file
11
outline-ss-server/docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
outline-ss-server:
|
||||
image: vimagick/outline-ss-server
|
||||
ports:
|
||||
- "8388:8388/tcp"
|
||||
- "8388:8388/udp"
|
||||
- "9092:9092/tcp"
|
||||
volumes:
|
||||
- ./data:/app/etc
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user