diff --git a/.env b/.env index 9344583d..128ddcbc 100755 --- a/.env +++ b/.env @@ -7,7 +7,7 @@ LOGS_LOCATION=/path/to/docker_logs #ENVIRONMENT VARIABLES TZ=Europe/Paris -PORT=20211 +NETALERTX_PORT=20211 #DEVELOPMENT VARIABLES diff --git a/install/docker/README.md b/install/docker/README.md index a0adc638..d6267ba1 100644 --- a/install/docker/README.md +++ b/install/docker/README.md @@ -40,8 +40,8 @@ The container uses `network_mode: host` by default. This is **required** for cor ### Environment Variables You can customize the application by editing the `environment` section in the compose file. Common overrides include: -* `TZ`: Timezone (mapped via `/etc/localtime`). -* `SCAN_SUBNETS`: Define specific subnets to scan if auto-detection fails (e.g., `192.168.1.0/24`). +* Timezone is controlled by the read-only `/etc/localtime` bind mount (do not use a `TZ` variable). +* `SCAN_SUBNETS`: Not present by default in the compose `environment` blocks. You must manually add it if you need to override subnet scanning (e.g., `192.168.1.0/24`). For a full list of environment variables and configuration options, see the [Customize with Environment Variables](https://docs.netalertx.com/DOCKER_COMPOSE/?h=environmental+variables#customize-with-environmental-variables) section in the documentation. diff --git a/install/docker/docker-compose.dev.yml b/install/docker/docker-compose.dev.yml index dae1069f..a2c12b24 100644 --- a/install/docker/docker-compose.dev.yml +++ b/install/docker/docker-compose.dev.yml @@ -23,13 +23,13 @@ services: target: /etc/localtime read_only: true tmpfs: - - "/tmp:mode=1700,uid=0,gid=0,rw,noexec,nosuid,nodev,async,noatime,nodiratime" + - "/tmp:mode=1777,rw,noexec,nosuid,nodev,async,noatime,nodiratime" environment: PUID: ${NETALERTX_UID:-20211} PGID: ${NETALERTX_GID:-20211} - LISTEN_ADDR: ${LISTEN_ADDR:-0.0.0.0} - PORT: ${PORT:-20211} - GRAPHQL_PORT: ${GRAPHQL_PORT:-20212} + LISTEN_ADDR: ${NETALERTX_LISTEN_ADDR:-0.0.0.0} + PORT: ${NETALERTX_PORT:-20211} + GRAPHQL_PORT: ${NETALERTX_GRAPHQL_PORT:-20212} mem_limit: 2048m mem_reservation: 1024m cpu_shares: 512 diff --git a/install/docker/docker-compose.yml b/install/docker/docker-compose.yml index 6622efcc..5dea86b0 100644 --- a/install/docker/docker-compose.yml +++ b/install/docker/docker-compose.yml @@ -23,13 +23,13 @@ services: target: /etc/localtime read_only: true tmpfs: - - "/tmp:mode=1700,uid=0,gid=0,rw,noexec,nosuid,nodev,async,noatime,nodiratime" + - "/tmp:mode=1777,rw,noexec,nosuid,nodev,async,noatime,nodiratime" environment: PUID: ${NETALERTX_UID:-20211} PGID: ${NETALERTX_GID:-20211} - LISTEN_ADDR: ${LISTEN_ADDR:-0.0.0.0} - PORT: ${PORT:-20211} - GRAPHQL_PORT: ${GRAPHQL_PORT:-20212} + LISTEN_ADDR: ${NETALERTX_LISTEN_ADDR:-0.0.0.0} + PORT: ${NETALERTX_PORT:-20211} + GRAPHQL_PORT: ${NETALERTX_GRAPHQL_PORT:-20212} mem_limit: 2048m mem_reservation: 1024m cpu_shares: 512