File tree Expand file tree Collapse file tree 2 files changed +25
-22
lines changed Expand file tree Collapse file tree 2 files changed +25
-22
lines changed Original file line number Diff line number Diff line change 1
1
zerotier-client :
2
- image : zyclonite/zerotier
3
2
container_name : zerotier
4
- devices :
5
- - /dev/net/tun
3
+ image : " zyclonite/zerotier "
4
+ restart : unless-stopped
6
5
network_mode : host
7
6
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"
9
10
cap_add :
10
- - NET_ADMIN
11
- - SYS_ADMIN
11
+ - NET_ADMIN
12
+ - SYS_ADMIN
12
13
Original file line number Diff line number Diff line change 1
1
zerotier-router :
2
- image : zyclonite/zerotier:router
3
2
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
6
13
network_mode : host
14
+ x-ports :
15
+ - " 9993:9993"
7
16
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"
9
20
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
22
24
You can’t perform that action at this time.
0 commit comments