app-store/apps/zerotier/docker-compose.yml

20 lines
483 B
YAML
Raw Normal View History

2022-09-13 06:59:30 +00:00
version: "3.9"
services:
zerotier:
container_name: zerotier
2022-09-13 07:16:22 +00:00
image: zerotier/zerotier:1.10.1
2022-09-13 06:59:30 +00:00
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
2022-09-13 07:17:35 +00:00
# TO DO: Pass host data to retain zerotier id, or setup a volume. Prefer ~stateless.
2022-09-13 06:59:30 +00:00
# networks:
# - tipi_main_network
# mac_address: ${MAC_ADDRESS}