From 48b267bb54164944b2151d06d6efdefa48c89c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ellensohn?= Date: Mon, 13 Nov 2023 16:28:59 +0100 Subject: [PATCH] added zerotier container in routing mode --- docker-compose.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 0cb778a..dd7626d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -481,3 +481,24 @@ services: - QT_X11_NO_MITSHM=1 - NVIDIA_DRIVER_CAPABILITIES=all + 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=Europe/Amsterdam + - PUID=1000 + - PGID=1000 + - ZEROTIER_ONE_LOCAL_PHYS=enp5s0 wlx00e04c5513fc # change for actual interfaces + - ZEROTIER_ONE_USE_IPTABLES_NFT=false + - ZEROTIER_ONE_GATEWAY_MODE=inbound # might change to both ways + #- ZEROTIER_ONE_NETWORK_IDS= # does not really do much?