You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
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:
|
|
container_name: 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
|
|
|
|
|