From a721af02b43dd03d4985b911d0cf0dab19f67ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Sat, 4 Feb 2023 14:43:15 +0100 Subject: [PATCH] add info about custom packages in container --- README.md | 2 ++ docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a401cd1b..6919b48a 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ If you need network discovery, make sure to have `nmap` installed and run upsnap Alternatively use the [docker-compose](docker-compose.yml) example. See the comments in the file for customization. +If you need additional packages inside the container, uncomment the `entrypoint` inside the compose file. You can search for your needed package [here](https://pkgs.alpinelinux.org/packages). + ### Reverse Proxy **Caddy example** diff --git a/docker-compose.yml b/docker-compose.yml index bd519be0..db62fb0a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,4 +16,5 @@ services: # - UPSNAP_INTERVAL=@every 10s # Sets the interval in which the devices are pinged # - UPSNAP_SCAN_RANGE=192.168.1.0/24 # Scan range is used for device discovery on local network # - UPSNAP_WEBSITE_TITLE=Custom name # Custom website title - # command: ["./upsnap", "serve", "--http", "0.0.0.0:8090"] # Uncomment this if you want to change the port for example + # # you can change the listen ip:port inside the container or install custom packages for shutdown via a custom entrypoint + # entrypoint: /bin/sh -c "apk update && apk add --no-cache ipmitool && rm -rf /var/cache/apk/* && ./upsnap serve --http 0.0.0.0:8090"