Skip to content

Instantly share code, notes, and snippets.

@pedroamador
Forked from elcritch/rancher-zerotier.yml
Last active April 27, 2018 16:50
Show Gist options
  • Save pedroamador/a1cfd8a31ecdb4a6704b6888c5e4016f to your computer and use it in GitHub Desktop.
Save pedroamador/a1cfd8a31ecdb4a6704b6888c5e4016f to your computer and use it in GitHub Desktop.
Run ZeroTier on RancherOS
# 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