Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Last active April 15, 2024 13:26
Show Gist options
  • Save santaklouse/c74332cf98e78e2dbf15eea21e577e7a to your computer and use it in GitHub Desktop.
Save santaklouse/c74332cf98e78e2dbf15eea21e577e7a to your computer and use it in GitHub Desktop.
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