Create docker-compose.yml
This commit is contained in:
parent
f1440751c9
commit
0ab91783c4
19
apps/zerotier/docker-compose.yml
Normal file
19
apps/zerotier/docker-compose.yml
Normal 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}
|
Loading…
Reference in New Issue
Block a user