Skip to content

Is this the right Docker Compose YML?#1772

Description

@Com177

What installation are you running?

Production (netalertx) 馃摝

Did I research?

The issue occurs in the following browsers. Select at least 2.

  • Firefox
  • Chrome
  • Other (unsupported) - PRs welcome
  • N/A - This is an issue with the backend

What I want to do

I'm running a legacy version of NAX v25.10.1. I'm looking to spin-up the latest version in Portainer (Docker) so I modified the docker-compose.yml that I found at: install/docker/docker-compose.yml. Is this the right yml to use for a docker container? Looks much more complex. I'm not sure what's needed and what's not for a simple install. Could someone please take a look at my YML and let me know if this can be used to run the latest version of the container?
NOTE:
I'm going to spin this container up next to the current instance running now, so I changed the port from 20211 to 10211 to avoid conflicts with the current instance.

Relevant settings you changed

No response

docker-compose.yml

services:
  netalertx:
    network_mode: host   # Use host networking for ARP scanning and other services
    image: ghcr.io/netalertx/netalertx:latest
    #OR CAN I USE THIS INSTEAD?-> image: jokobsk/netalertx:latest
    container_name: netalertx
    read_only: true

    cap_drop:
      - ALL
    cap_add:
      - NET_ADMIN
      - NET_RAW
      - NET_BIND_SERVICE
      - CHOWN
      - SETUID
#DO I NEED sysctls?
    sysctls:
      net.ipv4.conf.all.arp_ignore: 1
      net.ipv4.conf.all.arp_announce: 2
#IS THIS "VOLUMES" CONFIG WHAT SHOULD BE USED?

    volumes:
      - netalertx_config:/data/config:rw short-form volume (no /path is a short volume)
      - netalertx_db:/data/db:rw
#DO I NEED tmpfs?
#   tmpfs:
#     - "/tmp:mode=1777,rw,noexec,nosuid,nodev,async,noatime,nodiratime"

    environment:
      PUID: ${NETALERTX_UID:-10211}
      PGID: ${NETALERTX_GID:-10211}
      LISTEN_ADDR: ${LISTEN_ADDR:-0.0.0.0}
      PORT: ${PORT:-10211}
      GRAPHQL_PORT: ${GRAPHQL_PORT:-10212}
    mem_limit: 2048m
    mem_reservation: 1024m
    cpu_shares: 512
    pids_limit: 512
    logging:
      options:
        max-size: "10m"
        max-file: "3"
    restart: unless-stopped
#DO I NEED THE BELOW LINES?
#volumes:
# netalertx_data:

app.log

No response

Debug enabled

  • I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Setup 馃摜These are probably setup or user environment related issues.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions