Browse Source

init

master
gsd 6 months ago
commit
0cad1a6b8b
  1. 1
      .gitignore
  2. 3
      README
  3. 58
      docker-compose.yaml
  4. 1
      docker-socks5
  5. 10
      socks2http/Dockerfile

1
.gitignore

@ -0,0 +1 @@
*.conf

3
README

@ -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

58
docker-compose.yaml

@ -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

1
docker-socks5

@ -0,0 +1 @@
Subproject commit bab629b81d3eaccd1eab0cf01a6385f901159e9d

10
socks2http/Dockerfile

@ -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…
Cancel
Save