Skip to content

Commit fea7968

Browse files
authored
Merge pull request #676 from Paraphraser/20230329-zerotier-old-menu
2023-03-29 ZeroTier - old-menu branch - PR 2 of 2
2 parents 47e26b5 + 79c37ff commit fea7968

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
zerotier-client:
2-
image: zyclonite/zerotier
32
container_name: zerotier
4-
devices:
5-
- /dev/net/tun
3+
image: "zyclonite/zerotier"
4+
restart: unless-stopped
65
network_mode: host
76
volumes:
8-
- /var/lib/zerotier-one:/var/lib/zerotier-one
7+
- ./volumes/zerotier-one:/var/lib/zerotier-one
8+
devices:
9+
- "/dev/net/tun:/dev/net/tun"
910
cap_add:
10-
- NET_ADMIN
11-
- SYS_ADMIN
11+
- NET_ADMIN
12+
- SYS_ADMIN
1213

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
zerotier-router:
2-
image: zyclonite/zerotier:router
32
container_name: zerotier
4-
devices:
5-
- /dev/net/tun
3+
image: "zyclonite/zerotier:router"
4+
restart: unless-stopped
5+
environment:
6+
- TZ=${TZ:-Etc/UTC}
7+
- PUID=1000
8+
- PGID=1000
9+
# - ZEROTIER_ONE_NETWORK_IDS=yourNetworkID
10+
- ZEROTIER_ONE_LOCAL_PHYS=eth0 wlan0
11+
- ZEROTIER_ONE_USE_IPTABLES_NFT=true
12+
- ZEROTIER_ONE_GATEWAY_MODE=both
613
network_mode: host
14+
x-ports:
15+
- "9993:9993"
716
volumes:
8-
- /var/lib/zerotier-one:/var/lib/zerotier-one
17+
- ./volumes/zerotier-one:/var/lib/zerotier-one
18+
devices:
19+
- "/dev/net/tun:/dev/net/tun"
920
cap_add:
10-
- NET_ADMIN
11-
- SYS_ADMIN
12-
- NET_RAW
13-
restart: unless-stopped
14-
environment:
15-
- TZ=Etc/UTC
16-
- ZEROTIER_ONE_LOCAL_PHYS=eth0
17-
# - ZEROTIER_ONE_NETWORK_IDS=yourNetworkID
18-
- ZEROTIER_ONE_USE_IPTABLES_NFT=true
19-
- ZEROTIER_ONE_GATEWAY_MODE=both
20-
- PUID=1000
21-
- PGID=1000
21+
- NET_ADMIN
22+
- SYS_ADMIN
23+
- NET_RAW
2224

0 commit comments

Comments
 (0)