diff --git a/Dockerfile b/Dockerfile index a5d28f97..c0bfb500 100755 --- a/Dockerfile +++ b/Dockerfile @@ -42,8 +42,8 @@ RUN apk add --no-cache \ && python -m venv /opt/venv # Upgrade pip/wheel/setuptools and install Python packages -# hadolint ignore=DL3013 -RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel && \ +# hadolint ignore=DL3013 +RUN python -m pip install --upgrade pip setuptools wheel && \ pip install --prefer-binary --no-cache-dir -r /tmp/requirements.txt && \ chmod -R u-rwx,g-rwx /opt diff --git a/docs/DOCKER_INSTALLATION.md b/docs/DOCKER_INSTALLATION.md index 905e922d..ad260362 100644 --- a/docs/DOCKER_INSTALLATION.md +++ b/docs/DOCKER_INSTALLATION.md @@ -46,8 +46,10 @@ See alternative [docked-compose examples](https://github.com/jokob-sk/NetAlertX/ ### Docker environment variables -| Variable | Description | Example Value | +| Variable | Description | Example/Default Value | | :------------- |:------------------------| -----:| +| `PUID` |Runtime UID override | `20211` | +| `PGID` |Runtime GID override | `20211` | | `PORT` |Port of the web interface | `20211` | | `LISTEN_ADDR` |Set the specific IP Address for the listener address for the nginx webserver (web interface). This could be useful when using multiple subnets to hide the web interface from all untrusted networks. | `0.0.0.0` | |`LOADED_PLUGINS` | Default [plugins](https://github.com/jokob-sk/NetAlertX/blob/main/docs/PLUGINS.md) to load. Plugins cannot be loaded with `APP_CONF_OVERRIDE`, you need to use this variable instead and then specify the plugins settings with `APP_CONF_OVERRIDE`. | `["PIHOLE","ASUSWRT"]` | diff --git a/docs/FILE_PERMISSIONS.md b/docs/FILE_PERMISSIONS.md index d6221333..96082893 100755 --- a/docs/FILE_PERMISSIONS.md +++ b/docs/FILE_PERMISSIONS.md @@ -38,7 +38,15 @@ NetAlertX requires certain paths to be writable at runtime. These paths should b > All these paths will have **UID 20211 / GID 20211** inside the container. Files on the host will appear owned by `20211:20211`. ---- +You can cahnge the default PUID and GUID with env variables: + +```yaml +... + environment: + PUID: 20211 # Runtime PUID override + PGID: 20211 # Runtime PGID override +... +``` ### Solution