2022-09-24 13:43:08 +00:00
|
|
|
version: "3.7"
|
2022-09-13 06:59:30 +00:00
|
|
|
services:
|
|
|
|
zerotier:
|
|
|
|
container_name: zerotier
|
2024-05-03 19:58:25 +00:00
|
|
|
image: zerotier/zerotier:1.14.0
|
2022-09-13 06:59:30 +00:00
|
|
|
restart: on-failure
|
2022-09-24 13:59:49 +00:00
|
|
|
command: "${NETWORK_ID}"
|
2022-09-13 06:59:30 +00:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_ADMIN
|
2022-09-24 13:59:49 +00:00
|
|
|
devices:
|
2022-09-13 06:59:30 +00:00
|
|
|
- /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
|
2022-09-24 13:59:49 +00:00
|
|
|
# mac_address: ${MAC_ADDRESS}
|