Back to templates, since separate stacks are needed.

This commit is contained in:
WilliamMiceli
2018-03-16 01:57:09 -04:00
parent ea5581adb2
commit 889636d20d
5 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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: unless-stopped
volumes:
- ${CONFIG_STORAGE}:/var/lib/zerotier-one