mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
36 lines
992 B
YAML
36 lines
992 B
YAML
# Expected outcome: Container starts successfully with proper config mount
|
|
# - NETALERTX_CONFIG shows as writable and mounted
|
|
# - No configuration warnings for config path
|
|
# - Configuration persistence works correctly
|
|
services:
|
|
netalertx:
|
|
network_mode: host
|
|
build:
|
|
context: ../../../
|
|
dockerfile: Dockerfile
|
|
image: netalertx-test
|
|
container_name: netalertx-test-mount-config_mounted
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- NET_RAW
|
|
- NET_BIND_SERVICE
|
|
environment:
|
|
LISTEN_ADDR: 0.0.0.0
|
|
PORT: 9999 # Use non-default port to test all paths
|
|
APP_CONF_OVERRIDE: 20212
|
|
ALWAYS_FRESH_INSTALL: true
|
|
NETALERTX_DEBUG: 0
|
|
NETALERTX_CONFIG: /data/config
|
|
|
|
volumes:
|
|
- type: volume
|
|
source: test_netalertx_data
|
|
target: /data
|
|
read_only: false
|
|
tmpfs:
|
|
- "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
|
|
volumes:
|
|
test_netalertx_data:
|