-
-
Save pedroamador/a1cfd8a31ecdb4a6704b6888c5e4016f 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
# zerotier configuration | |
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