networks:
  1panel-network:
    external: true

services:
  watchyourlan:
    image: aceberg/watchyourlan:2.0.4
    container_name: ${CONTAINER_NAME}
    labels:
      createdBy: "Apps"
    restart: always
    network_mode: host
    ports:
      - ${PANEL_APP_PORT_HTTP}:8840
    env_file:
      - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
      - ${ENV_FILE:-/etc/1panel/envs/default.env}
    volumes:
      - ${WATCHYOURLAN_ROOT_PATH}/data:/data/WatchYourLAN
    environment:
      - HOST=0.0.0.0
      - PORT=8840
      - LOG_LEVEL=info
