mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Merge pull request #1155 from FlyingToto/main
adding example 5 of docker compose (3rd try!)
This commit is contained in:
@@ -137,6 +137,7 @@ networks:
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example 5: same as 3 but with a top-level root directory; also works in Portainer as-is
|
### Example 5: same as 3 but with a top-level root directory; also works in Portainer as-is
|
||||||
|
|
||||||
`docker-compose.yml`
|
`docker-compose.yml`
|
||||||
@@ -148,6 +149,7 @@ services:
|
|||||||
# use the below line if you want to test the latest dev image instead of the stable release
|
# use the below line if you want to test the latest dev image instead of the stable release
|
||||||
# image: "ghcr.io/jokob-sk/netalertx-dev:latest"
|
# image: "ghcr.io/jokob-sk/netalertx-dev:latest"
|
||||||
image: "ghcr.io/jokob-sk/netalertx:latest"
|
image: "ghcr.io/jokob-sk/netalertx:latest"
|
||||||
|
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
@@ -161,8 +163,12 @@ services:
|
|||||||
# (API: OPTION 2) use when debugging issues
|
# (API: OPTION 2) use when debugging issues
|
||||||
# - ${APP_FOLDER}/netalertx/api:/app/api
|
# - ${APP_FOLDER}/netalertx/api:/app/api
|
||||||
environment:
|
environment:
|
||||||
- TZ=${TZ}
|
|
||||||
|
- TZ=${TZ}
|
||||||
- PORT=${PORT}
|
- PORT=${PORT}
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
- LISTEN_ADDR=${LISTEN_ADDR}
|
||||||
```
|
```
|
||||||
|
|
||||||
`.env` file
|
`.env` file
|
||||||
@@ -171,8 +177,10 @@ services:
|
|||||||
APP_FOLDER=/path/to/local/NetAlertX/location
|
APP_FOLDER=/path/to/local/NetAlertX/location
|
||||||
|
|
||||||
#ENVIRONMENT VARIABLES
|
#ENVIRONMENT VARIABLES
|
||||||
PUID=300
|
|
||||||
PGID=200
|
PUID=200
|
||||||
|
PGID=300
|
||||||
|
|
||||||
TZ=America/New_York
|
TZ=America/New_York
|
||||||
LISTEN_ADDR=0.0.0.0
|
LISTEN_ADDR=0.0.0.0
|
||||||
PORT=20211
|
PORT=20211
|
||||||
|
|||||||
Reference in New Issue
Block a user