Add docker-compose file for convenience

This is functionally identical to the docker run command in the readme.
This commit is contained in:
Jafner 2021-08-13 03:59:21 -07:00 committed by GitHub
parent 9b5623ac02
commit 9a0c9cddc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3'
services:
zerotier:
image: zyclonite/zerotier
container_name: zerotier-one
devices:
- /dev/net/tun
network_mode: host
volumes:
- '/var/lib/zerotier-one:/var/lib/zerotier-one'
cap_add:
- NET_ADMIN
- SYS_ADMIN