mirror of
https://github.com/lancachenet/monolithic
synced 2025-02-16 12:58:26 +00:00
Merge pull request #18 from borzaka/patch-1
Add missing export to HOST_IP
This commit is contained in:
commit
3b169e0085
1 changed files with 2 additions and 2 deletions
|
@ -44,11 +44,11 @@ Unlike lancachenet/generic this service will cache all cdn services defined in t
|
|||
|
||||
To initialise a full caching setup with dns and sni proxy you can use the following script as a starting point:
|
||||
```
|
||||
HOST_IP=`hostname -I | cut -d' ' -f1`
|
||||
export HOST_IP=`hostname -I | cut -d' ' -f1`
|
||||
docker run --restart unless-stopped --name lancache-dns --detach -p 53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=$HOST_IP lancachenet/lancache-dns:latest
|
||||
docker run --restart unless-stopped --name lancache --detach -v /cache/data:/data/cache -v /cache/logs:/data/logs -p 80:80 lancachenet/monolithic:latest
|
||||
docker run --restart unless-stopped --name sniproxy --detach -p 443:443 lancachenet/sniproxy:latest
|
||||
echo Please configure your dhcp server to serve dns as $HOST_IP
|
||||
echo Please configure your router/dhcp server to serve dns as $HOST_IP
|
||||
```
|
||||
Please check that `hostname -I` returns the correct IP before running this snippet
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue