From 9a038764953eda9f6657501c73b905d300b1bd67 Mon Sep 17 00:00:00 2001 From: crocandr Date: Mon, 17 Dec 2018 14:17:55 +0000 Subject: [PATCH] README update --- README.md | 14 ++++++++++++++ docker-compose.yml | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5288b13..ec971cf 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,17 @@ docker-compose exec zerotier zerotier-cli join 565799d8f6bba354 You can choose working mode on the web page. If you turn on bridge (mode) on the web site, you can create site2site vpn solution with some ZeroTier nodes easily. +### docker-compose way + +Check my Github page for an example docker-compose.yml file. + + - modify the `NETWORK_ID` + - modify the `ROUTES` and use `,;,` if you would like to use Site-to-Site function between the networks. But do not forget to add the routes to your router too! + +``` +docker-compose up -d +``` + + +Good Luck! + diff --git a/docker-compose.yml b/docker-compose.yml index 82df37a..164a1b9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,8 @@ version: '3' services: zerotier: image: croc/zerotier -# environment: -# - NETWORK_ID=9b............34 + environment: + - NETWORK_ID=9b............34 # - ROUTES=10.10.12.0/23,10.147.20.115;10.10.14.0/23,10.147.20.220 network_mode: host privileged: true