Create docker-compose.yml

This commit is contained in:
suo 2022-09-13 16:59:30 +10:00 committed by GitHub
parent f1440751c9
commit 0ab91783c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}