mirror of
https://github.com/zyclonite/zerotier-docker.git
synced 2024-12-13 09:51:04 +01:00
09df8bf66e
Adds `ZEROTIER_ONE_GATEWAY_MODE` variable. Supported values are `inbound` (forward traffic from ZeroTier cloud to local interfaces), `outbound` (forward traffic from local interfaces to ZeroTier cloud) and `both` (bi-directional). Defaults to `inbound`. Also checks for `net.ipv4.ip_forward=1`. If not enabled, falls back to standard client mode. Signed-off-by: Phill Kelley <34226495+Paraphraser@users.noreply.github.com>
24 lines
564 B
YAML
24 lines
564 B
YAML
version: '3'
|
|
services:
|
|
zerotier:
|
|
image: "zyclonite/zerotier:router"
|
|
container_name: zerotier-one
|
|
devices:
|
|
- /dev/net/tun
|
|
network_mode: host
|
|
volumes:
|
|
- '/var/lib/zerotier-one:/var/lib/zerotier-one'
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_ADMIN
|
|
- NET_RAW
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Etc/UTC
|
|
- PUID=999
|
|
- PGID=994
|
|
- ZEROTIER_ONE_LOCAL_PHYS=eth0
|
|
- ZEROTIER_ONE_USE_IPTABLES_NFT=false
|
|
- ZEROTIER_ONE_GATEWAY_MODE=inbound
|
|
# - ZEROTIER_ONE_NETWORK_IDS=yourNetworkID
|