README update

This commit is contained in:
crocandr 2018-12-17 14:17:55 +00:00
parent a07ece8db0
commit 9a03876495
2 changed files with 16 additions and 2 deletions

View file

@ -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. 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 `<Remote Network>,<Zerotier node IP>;<another network>,<another Zerotier node IP>` 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!

View file

@ -3,8 +3,8 @@ version: '3'
services: services:
zerotier: zerotier:
image: croc/zerotier image: croc/zerotier
# environment: environment:
# - NETWORK_ID=9b............34 - NETWORK_ID=9b............34
# - ROUTES=10.10.12.0/23,10.147.20.115;10.10.14.0/23,10.147.20.220 # - ROUTES=10.10.12.0/23,10.147.20.115;10.10.14.0/23,10.147.20.220
network_mode: host network_mode: host
privileged: true privileged: true