From 0ab91783c412468c6245b1e3426bd516c9e1cf00 Mon Sep 17 00:00:00 2001 From: suo <59600018+suodrazah@users.noreply.github.com> Date: Tue, 13 Sep 2022 16:59:30 +1000 Subject: [PATCH] Create docker-compose.yml --- apps/zerotier/docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 apps/zerotier/docker-compose.yml diff --git a/apps/zerotier/docker-compose.yml b/apps/zerotier/docker-compose.yml new file mode 100644 index 00000000..b6890532 --- /dev/null +++ b/apps/zerotier/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3.9" +services: + zerotier: + container_name: zerotier + image: zerotier/zerotier:latest + restart: on-failure + command: "zerotier-cli join ${NETWORK_ID}" + cap_add: + - NET_ADMIN + - SYS_ADMIN + volumes: + - /dev/net/tun + healthcheck: + test: ['CMD','true'] + network_mode: host +# TO DO: Pass host data to retain zerotier id +# networks: +# - tipi_main_network +# mac_address: ${MAC_ADDRESS}