commit
0cad1a6b8b
5 changed files with 73 additions and 0 deletions
@ -0,0 +1 @@ |
|||||
|
*.conf |
@ -0,0 +1,3 @@ |
|||||
|
https://git.pblr-nyk.pro/mirror/docker-wireguard |
||||
|
https://git.pblr-nyk.pro/mirror/socks-to-http-proxy |
||||
|
https://git.pblr-nyk.pro/mirror/docker-socks5 |
@ -0,0 +1,58 @@ |
|||||
|
services: |
||||
|
proxywg_http: |
||||
|
build: |
||||
|
context: ./socks2http |
||||
|
dockerfile: Dockerfile |
||||
|
#ports: |
||||
|
# - 3128:3128 |
||||
|
command: -p 3128 -s 127.0.0.1:1080 --listen-ip 0.0.0.0 |
||||
|
network_mode: service:proxywg_client |
||||
|
depends_on: |
||||
|
- proxywg_socks |
||||
|
deploy: |
||||
|
resources: |
||||
|
limits: |
||||
|
cpus: "0.5" |
||||
|
memory: 512M |
||||
|
restart: unless-stopped |
||||
|
|
||||
|
proxywg_socks: |
||||
|
container_name: proxywg_socks_c |
||||
|
build: |
||||
|
context: ./docker-socks5 |
||||
|
dockerfile: Dockerfile |
||||
|
volumes: |
||||
|
- $PWD/docker-socks5/sockd.conf:/etc/sockd.conf:ro |
||||
|
#ports: |
||||
|
# - 1080:1080 |
||||
|
depends_on: |
||||
|
- proxywg_client |
||||
|
network_mode: service:proxywg_client |
||||
|
deploy: |
||||
|
resources: |
||||
|
limits: |
||||
|
cpus: "0.5" |
||||
|
memory: 512M |
||||
|
restart: unless-stopped |
||||
|
|
||||
|
proxywg_client: |
||||
|
image: wireguard:clear |
||||
|
cap_add: |
||||
|
- NET_ADMIN |
||||
|
- SYS_MODULE |
||||
|
ports: |
||||
|
- 1080:1080 |
||||
|
- 3128:3128 |
||||
|
environment: |
||||
|
- LOCAL_SUBNETS=192.168.3.0/24 |
||||
|
sysctls: |
||||
|
net.ipv4.conf.all.src_valid_mark: 1 |
||||
|
volumes: |
||||
|
- $PWD/proxy.wg.conf:/etc/wireguard/wg0.conf |
||||
|
deploy: |
||||
|
resources: |
||||
|
limits: |
||||
|
cpus: "0.5" |
||||
|
memory: 512M |
||||
|
restart: unless-stopped |
||||
|
|
@ -0,0 +1,10 @@ |
|||||
|
FROM docker.pblr-nyk.pro/ubuntu:22.04 |
||||
|
RUN apt-get update \ |
||||
|
&& apt-get install -y wget \ |
||||
|
&& mkdir -p /opt/sthp \ |
||||
|
&& cd /opt/sthp \ |
||||
|
&& wget https://github.com/KaranGauswami/socks-to-http-proxy/releases/download/v0.5.0-alpha2/sthp-linux \ |
||||
|
&& chmod +x sthp-linux \ |
||||
|
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ |
||||
|
WORKDIR /opt/sthp |
||||
|
ENTRYPOINT ["/opt/sthp/sthp-linux"] |
Loading…
Reference in new issue