<\/div>\n<\/aside>\n\n
am i doing something stupid<\/p>\n
thanks, \nrob<\/p>","upvoteCount":5,"datePublished":"2025-06-10T16:00:26.892Z","url":"https://community.spiceworks.com/t/install-netalertx/1213948/1","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"}},{"@type":"Answer","text":"
ok ive added this in file /opt/netalertx/compose.yaml<\/p>\n
services:\n netalertx:\n container_name: netalertx\n # use the below line if you want to test the latest dev image\n # image: \"ghcr.io/jokob-sk/netalertx-dev:latest\"\n image: \"ghcr.io/jokob-sk/netalertx:latest\"\n network_mode: \"host\"\n restart: unless-stopped\n volumes:\n - local_path/config:/app/config\n - local_path/db:/app/db\n # (optional) useful for debugging if you have issues setting up the container\n - local_path/logs:/app/log\n # (API: OPTION 1) use for performance\n - type: tmpfs\n target: /app/api\n # (API: OPTION 2) use when debugging issues\n # - local_path/api:/app/api\n environment:\n - TZ=Europe/London\n - PORT=20211\n<\/code><\/pre>\nnow to run it i do this in the dir<\/p>\n
docker-compose up -d\n<\/code><\/pre>\nbut i get errors<\/p>\n
Traceback (most recent call last):\n File \"/usr/bin/docker-compose\", line 33, in <module>\n sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3/dist-packages/compose/cli/main.py\", line 81, in main\n command_func()\n File \"/usr/lib/python3/dist-packages/compose/cli/main.py\", line 200, in perform_command\n project = project_from_options('.', options)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3/dist-packages/compose/cli/command.py\", line 60, in project_from_options\n return get_project(\n ^^^^^^^^^^^^\n File \"/usr/lib/python3/dist-packages/compose/cli/command.py\", line 144, in get_project\n config_details = config.find(project_dir, config_path, environment, override_dir)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3/dist-packages/compose/config/config.py\", line 317, in find\n filenames = get_default_config_files(base_dir)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3/dist-packages/compose/config/config.py\", line 353, in get_default_config_files\n (candidates, path) = find_candidates_in_parent_dirs(SUPPORTED_FILENAMES, base_dir)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3/dist-packages/compose/config/config.py\", line 389, in find_candidates_in_parent_dirs\n if os.path.abspath(parent_dir) != os.path.abspath(path):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"<frozen posixpath>\", line 423, in abspath\nFileNotFoundError: [Errno 2] No such file or directory\n<\/code><\/pre>\nEDIT - ive restarted and i get this now<\/p>\n
docker-compose up -d\nERROR: Named volume \"local_path/config:/app/config:rw\" is used in service \"netalertx\" but no declaration was found in the volumes section.\nroot@netalertx:/opt/netalertx#\n<\/code><\/pre>","upvoteCount":1,"datePublished":"2025-06-10T16:25:30.986Z","url":"https://community.spiceworks.com/t/install-netalertx/1213948/2","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"}},{"@type":"Answer","text":"sorted it<\/p>\n
docker run -d --rm --network=host \\\n -v /jokobsk/netalertx/app/config \\\n -v /jokobsk/netalertx/app/db \\\n --mount type=tmpfs,target=/jokobsk/netalertx/app/api \\\n -e PUID=200 -e PGID=300 \\\n -e TZ=Europe/London \\\n -e PORT=20211 \\\n ghcr.io/jokob-sk/netalertx:latest\n<\/code><\/pre>\nyou think its best to install via docker compose instead<\/p>","upvoteCount":0,"datePublished":"2025-06-11T06:43:29.473Z","url":"https://community.spiceworks.com/t/install-netalertx/1213948/3","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"}}]}}
hi all,
want to install netalertx but i would had thought it would be just straight forward to install docker and docker compose on my ubuntu server and just run this command from the terminal
docker run -d --rm --network=host \
-v local_path/config:/app/config \
-v local_path/db:/app/db \
--mount type=tmpfs,target=/app/api \
-e PUID=200 -e PGID=300 \
-e TZ=Europe/Berlin \
-e PORT=20211 \
ghcr.io/jokob-sk/netalertx:latest
am i doing something stupid
thanks,
rob
5 Spice ups
ok ive added this in file /opt/netalertx/compose.yaml
services:
netalertx:
container_name: netalertx
# use the below line if you want to test the latest dev image
# image: "ghcr.io/jokob-sk/netalertx-dev:latest"
image: "ghcr.io/jokob-sk/netalertx:latest"
network_mode: "host"
restart: unless-stopped
volumes:
- local_path/config:/app/config
- local_path/db:/app/db
# (optional) useful for debugging if you have issues setting up the container
- local_path/logs:/app/log
# (API: OPTION 1) use for performance
- type: tmpfs
target: /app/api
# (API: OPTION 2) use when debugging issues
# - local_path/api:/app/api
environment:
- TZ=Europe/London
- PORT=20211
now to run it i do this in the dir
docker-compose up -d
but i get errors
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 33, in <module>
sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
command_func()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
project = project_from_options('.', options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
return get_project(
^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 144, in get_project
config_details = config.find(project_dir, config_path, environment, override_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/compose/config/config.py", line 317, in find
filenames = get_default_config_files(base_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/compose/config/config.py", line 353, in get_default_config_files
(candidates, path) = find_candidates_in_parent_dirs(SUPPORTED_FILENAMES, base_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/compose/config/config.py", line 389, in find_candidates_in_parent_dirs
if os.path.abspath(parent_dir) != os.path.abspath(path):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen posixpath>", line 423, in abspath
FileNotFoundError: [Errno 2] No such file or directory
EDIT - ive restarted and i get this now
docker-compose up -d
ERROR: Named volume "local_path/config:/app/config:rw" is used in service "netalertx" but no declaration was found in the volumes section.
root@netalertx:/opt/netalertx#
1 Spice up
sorted it
docker run -d --rm --network=host \
-v /jokobsk/netalertx/app/config \
-v /jokobsk/netalertx/app/db \
--mount type=tmpfs,target=/jokobsk/netalertx/app/api \
-e PUID=200 -e PGID=300 \
-e TZ=Europe/London \
-e PORT=20211 \
ghcr.io/jokob-sk/netalertx:latest
you think its best to install via docker compose instead