Add NET_ADMIN, NET_RAW, remove obsolete docker compose field

This commit is contained in:
jackra1n 2024-11-30 21:24:51 +01:00
parent 9c7809a513
commit 508a698b7c
2 changed files with 7 additions and 3 deletions

View file

@ -42,6 +42,7 @@ docker run --name wyl \
-e "IFACES=$YOURIFACE" \
-e "TZ=$YOURTIMEZONE" \
--network="host" \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
-v $DOCKERDATAPATH/wyl:/data/WatchYourLAN \
aceberg/watchyourlan
```
@ -180,12 +181,13 @@ docker run --name wyl \
-e "IFACES=$YOURIFACE" \
-e "TZ=$YOURTIMEZONE" \
--network="host" \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
-v $DOCKERDATAPATH/wyl:/data/WatchYourLAN \
aceberg/watchyourlan -n "http://$YOUR_IP:8850"
```
Or use [docker-compose](docker-compose-local.yml)
</details>
</details>
## API & Integrations

View file

@ -1,8 +1,10 @@
version: "3"
services:
wyl:
image: aceberg/watchyourlan
network_mode: "host"
network_mode: "host"
cap_add:
- NET_ADMIN
- NET_RAW
restart: unless-stopped
volumes:
- ~/.dockerdata/wyl:/data/WatchYourLAN