Last active
April 15, 2024 13:26
-
-
Save santaklouse/c74332cf98e78e2dbf15eea21e577e7a to your computer and use it in GitHub Desktop.
socks5 proxy + zerotier one (http://play-with-docker.com/?stack=https://gist.githubusercontent.com/santaklouse/c74332cf98e78e2dbf15eea21e577e7a/raw/zerosocks-stack.yml&stack_name=ZT_SOCKS5;docker+compose+-f+/var/run/pwd/uploads/zerosocks-stack.yml+up+-d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
socks5: | |
image: serjs/go-socks5-proxy | |
restart: always | |
depends_on: | |
- zerotier-one | |
ports: | |
- 1080:1080 | |
zerotier-one: | |
image: zyclonite/zerotier | |
devices: | |
- /dev/net/tun | |
network_mode: host | |
volumes: | |
- '/var/lib/zerotier-one:/var/lib/zerotier-one' | |
cap_add: | |
- NET_ADMIN | |
- SYS_ADMIN | |
environment: | |
- TZ=Etc/UTC | |
command: '-U & install -Dv /dev/null /var/lib/zerotier-one/networks.d/a0cbf4b62a18762a.conf & ; wait' | |
# command: '-U & zerotier-cli join a0cbf4b62a18762a ; fg' | |
# command: '-U & sleep 5 && zerotier-cli join a0cbf4b62a18762a & wait' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment