-
-
Save soakes/f9f6b4b6686b8d50afb1cf556df344df to your computer and use it in GitHub Desktop.
Run ZeroTier on RancherOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
rancher: | |
services: | |
zerotier: | |
image: zerotier/zerotier-containerized:1.2.4 | |
labels: | |
io.rancher.os.scope: system | |
volumes: | |
- /var/lib/zerotier-one:/var/lib/zerotier-one | |
restart: always | |
net: host | |
devices: | |
- /dev/net/tun:/dev/net/tun | |
cap_add: | |
- NET_ADMIN | |
- SYS_ADMIN | |
volumes_from: | |
- system-volumes | |
zerotier-join: | |
image: zerotier/zerotier-containerized:1.2.4 | |
labels: | |
io.rancher.os.scope: system | |
volumes: | |
- /var/lib/zerotier-one:/var/lib/zerotier-one | |
restart: on-failure | |
net: host | |
entrypoint: /zerotier-cli join XYZ | |
depends_on: | |
- zerotier |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment