mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-30 23:03:03 -07:00
Apply CodeRabbit suggestions
This commit is contained in:
2
.env
2
.env
@@ -7,7 +7,7 @@ LOGS_LOCATION=/path/to/docker_logs
|
|||||||
#ENVIRONMENT VARIABLES
|
#ENVIRONMENT VARIABLES
|
||||||
|
|
||||||
TZ=Europe/Paris
|
TZ=Europe/Paris
|
||||||
PORT=20211
|
NETALERTX_PORT=20211
|
||||||
|
|
||||||
#DEVELOPMENT VARIABLES
|
#DEVELOPMENT VARIABLES
|
||||||
|
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ The container uses `network_mode: host` by default. This is **required** for cor
|
|||||||
### Environment Variables
|
### Environment Variables
|
||||||
You can customize the application by editing the `environment` section in the compose file. Common overrides include:
|
You can customize the application by editing the `environment` section in the compose file. Common overrides include:
|
||||||
|
|
||||||
* `TZ`: Timezone (mapped via `/etc/localtime`).
|
* Timezone is controlled by the read-only `/etc/localtime` bind mount (do not use a `TZ` variable).
|
||||||
* `SCAN_SUBNETS`: Define specific subnets to scan if auto-detection fails (e.g., `192.168.1.0/24`).
|
* `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.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -23,13 +23,13 @@ services:
|
|||||||
target: /etc/localtime
|
target: /etc/localtime
|
||||||
read_only: true
|
read_only: true
|
||||||
tmpfs:
|
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:
|
environment:
|
||||||
PUID: ${NETALERTX_UID:-20211}
|
PUID: ${NETALERTX_UID:-20211}
|
||||||
PGID: ${NETALERTX_GID:-20211}
|
PGID: ${NETALERTX_GID:-20211}
|
||||||
LISTEN_ADDR: ${LISTEN_ADDR:-0.0.0.0}
|
LISTEN_ADDR: ${NETALERTX_LISTEN_ADDR:-0.0.0.0}
|
||||||
PORT: ${PORT:-20211}
|
PORT: ${NETALERTX_PORT:-20211}
|
||||||
GRAPHQL_PORT: ${GRAPHQL_PORT:-20212}
|
GRAPHQL_PORT: ${NETALERTX_GRAPHQL_PORT:-20212}
|
||||||
mem_limit: 2048m
|
mem_limit: 2048m
|
||||||
mem_reservation: 1024m
|
mem_reservation: 1024m
|
||||||
cpu_shares: 512
|
cpu_shares: 512
|
||||||
|
|||||||
@@ -23,13 +23,13 @@ services:
|
|||||||
target: /etc/localtime
|
target: /etc/localtime
|
||||||
read_only: true
|
read_only: true
|
||||||
tmpfs:
|
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:
|
environment:
|
||||||
PUID: ${NETALERTX_UID:-20211}
|
PUID: ${NETALERTX_UID:-20211}
|
||||||
PGID: ${NETALERTX_GID:-20211}
|
PGID: ${NETALERTX_GID:-20211}
|
||||||
LISTEN_ADDR: ${LISTEN_ADDR:-0.0.0.0}
|
LISTEN_ADDR: ${NETALERTX_LISTEN_ADDR:-0.0.0.0}
|
||||||
PORT: ${PORT:-20211}
|
PORT: ${NETALERTX_PORT:-20211}
|
||||||
GRAPHQL_PORT: ${GRAPHQL_PORT:-20212}
|
GRAPHQL_PORT: ${NETALERTX_GRAPHQL_PORT:-20212}
|
||||||
mem_limit: 2048m
|
mem_limit: 2048m
|
||||||
mem_reservation: 1024m
|
mem_reservation: 1024m
|
||||||
cpu_shares: 512
|
cpu_shares: 512
|
||||||
|
|||||||
Reference in New Issue
Block a user