What installation are you running?
Production (netalertx) 📦
Did I research?
The issue occurs in the following browsers. Select at least 2.
What I want to do
I have tried to deploy the docker_compose.yml from: install > docker > docker-compose .yml with minor modifications in both this and in a heavily modified form and neither will deploy. It looks like the volumes are not being created. I have a current instance of netalertx (legacy version) running where I want to run this newer version. The legacy container is running in a Docker-Portainer LXC running in Proxmox.
Relevant settings you changed
I had to make some changes to allow "side-by-side" deployment with an existing old instance of netalertx that is currently running. Modification that had to be made to both are:
container_name: netalertx2 (from netalertx)
PUID: ${NETALERTX_UID:-10211} (Port changed from 20211 to 10211)
PGID: ${NETALERTX_GID:-10211} (Port changed from 20211 to 10211)
GRAPHQL_PORT: ${GRAPHQL_PORT:-10212} (Port changed from 20212 to 10212)
I methodically removed parts to the original compose file to see if I could get it to deploy. Changes made to the more simplified compose file include:
REMOVED:
sysctls:
net.ipv4.conf.all.arp_ignore: 1
net.ipv4.conf.all.arp_announce: 2
REMOVED:
tmpfs:
- "/tmp:mode=1777,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
REMOVED:
volumes:
netalertx_data:
AND
volumes:
- type: volume
source: netalertx_data
target: /data
read_only: false
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
AND THEN REPLACED IT WITH
volumes:
- netalertx_config:/data/config:rw #short-form volume (no /path is a short volume)
- netalertx_db:/data/db:rw
THE ERROR MESSAGE IS ALWAYS THE SAME OR SIMILAR
docker-compose.yml
# This YML only contains the necessary modifications. (The heavily modified (simpler) YML is below this one.
services:
netalertx:
network_mode: host # Use host networking for ARP scanning and other services
image: ghcr.io/netalertx/netalertx:latest
container_name: netalertx2
read_only: true
cap_drop:
- ALL
cap_add:
- NET_ADMIN
- NET_RAW
- NET_BIND_SERVICE
- CHOWN
- SETUID
- SETGID
sysctls:
net.ipv4.conf.all.arp_ignore: 1
net.ipv4.conf.all.arp_announce: 2
volumes:
- type: volume
source: netalertx_data
target: /data
read_only: false
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
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:-20211}
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
volumes:
netalertx_data:
# Below is the heavily modified (simpler) YML
services:
netalertx:
network_mode: host # Use host networking for ARP scanning and other services
image: ghcr.io/netalertx/netalertx:latest
container_name: netalertx2
read_only: true
cap_drop:
- ALL
cap_add:
- NET_ADMIN
- NET_RAW
- NET_BIND_SERVICE
- CHOWN
- SETUID
- SETGID
sysctls:
net.ipv4.conf.all.arp_ignore: 1
net.ipv4.conf.all.arp_announce: 2
volumes:
- netalertx_config:/data/config:rw #short-form volume (no /path is a short volume)
- netalertx_db:/data/db:rw
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"
app.log
No response
Debug enabled
What installation are you running?
Production (netalertx) 📦
Did I research?
The issue occurs in the following browsers. Select at least 2.
What I want to do
I have tried to deploy the docker_compose.yml from: install > docker > docker-compose .yml with minor modifications in both this and in a heavily modified form and neither will deploy. It looks like the volumes are not being created. I have a current instance of netalertx (legacy version) running where I want to run this newer version. The legacy container is running in a Docker-Portainer LXC running in Proxmox.
Relevant settings you changed
I had to make some changes to allow "side-by-side" deployment with an existing old instance of netalertx that is currently running. Modification that had to be made to both are:
container_name: netalertx2 (from netalertx)
PUID: ${NETALERTX_UID:-10211} (Port changed from 20211 to 10211)
PGID: ${NETALERTX_GID:-10211} (Port changed from 20211 to 10211)
GRAPHQL_PORT: ${GRAPHQL_PORT:-10212} (Port changed from 20212 to 10212)
I methodically removed parts to the original compose file to see if I could get it to deploy. Changes made to the more simplified compose file include:
REMOVED:
sysctls:
net.ipv4.conf.all.arp_ignore: 1
net.ipv4.conf.all.arp_announce: 2
REMOVED:
tmpfs:
- "/tmp:mode=1777,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
REMOVED:
volumes:
netalertx_data:
AND
volumes:
- type: volume
source: netalertx_data
target: /data
read_only: false
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
AND THEN REPLACED IT WITH
volumes:
- netalertx_config:/data/config:rw #short-form volume (no /path is a short volume)
- netalertx_db:/data/db:rw
THE ERROR MESSAGE IS ALWAYS THE SAME OR SIMILAR
docker-compose.yml
app.log
No response
Debug enabled