aceberg / WatchYourLAN

Lightweight network IP scanner with web GUI
https://hub.docker.com/r/aceberg/watchyourlan
MIT License
1.24k stars 55 forks source link

Web gui not working #90

Closed bun-dev closed 6 days ago

bun-dev commented 1 week ago

Hello, I'm trying to run the docker version but I cannot access the web ui from http://localhost:8840. Everything looks fine in the container logs, so I'm not sure what the issue is.

docker-compose.yml

version: "3.6"
name: watchyourlan
services:
  wyl:
    image: aceberg/watchyourlan:latest
    container_name: watchlan
    network_mode: "host"      
    restart: unless-stopped
    volumes:
    - '/path/to/my/watchyourlan/data:/data'

config.yaml

color: "dark"
dbpath: '/data/db.sqlite'
guiip: "0.0.0.0"
guiport: "8840"
iface: "enp2s0"
ignoreip: "no"
loglevel: "verbose"
theme: "darkly"
timeout: 120
tz: "America/New_York"
shoutrrr_url: "https://gotify.com/message?token=******/?title=Unknown host detected&DisableTLS=yes"
auth: true
auth_expire: "60d"
auth_user: "******"
auth_password: "$$******"

Here are the container logs. It's definitely working and scanning my local network. ss 06-30-24

I also see WatchYourLAN is listening to port 8840 ss 06-30-24 (1)

bun-dev commented 6 days ago

Just wanted to comment that I solved this. Since the container is running in network_mode: "host" mode, I forgot I needed to create a ufw rule to allow the mapped port of the container.