mirror of
https://github.com/thelittlerocket/docker-zerotier.git
synced 2025-03-01 00:24:44 +08:00
README update
This commit is contained in:
parent
a07ece8db0
commit
9a03876495
2 changed files with 16 additions and 2 deletions
14
README.md
14
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 `<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!
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue