From 226cf83004cf26b6a8eac77e07f0427e0d50433e Mon Sep 17 00:00:00 2001 From: Phill Kelley <34226495+Paraphraser@users.noreply.github.com> Date: Tue, 19 Jul 2022 18:42:58 +1000 Subject: [PATCH] add example docker-compose service definition for router Signed-off-by: Phill Kelley <34226495+Paraphraser@users.noreply.github.com> --- docker-compose-router.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker-compose-router.yml diff --git a/docker-compose-router.yml b/docker-compose-router.yml new file mode 100644 index 0000000..2b0c4a3 --- /dev/null +++ b/docker-compose-router.yml @@ -0,0 +1,22 @@ +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_NETWORK_ID=yourNetworkID