19 lines
445 B
YAML
19 lines
445 B
YAML
version: '2'
|
|
services:
|
|
zerotier:
|
|
container_name: ${NAME}
|
|
image: zerotier/zerotier-containerized:latest
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_ADMIN
|
|
command:
|
|
- -d
|
|
devices:
|
|
- "/dev/net/tun"
|
|
labels:
|
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
|
network_mode: "host"
|
|
restart: "no"
|
|
volumes:
|
|
- TEST:/var/lib/zerotier-one:nocopy
|
|
volumes_driver: rancher-nfs |