From 4830f43bab30e159bb9f986a9ec082a12c2383e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Wed, 16 Aug 2023 12:17:59 +0200 Subject: [PATCH] upgrade docker-compose to version 4 --- docker-compose.yml | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4467b3af..5e63cae1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,25 +1,25 @@ version: "3" services: - upsnap: - container_name: upsnap - image: ghcr.io/seriousm4x/upsnap:3 - network_mode: host - restart: unless-stopped - volumes: - - ./data:/app/pb_data - # environment: - # - TZ=Europe/Berlin # Set container timezone for cron schedules - # - 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 - # # dns is used for name resolution during network scan - # dns: - # - 192.18.0.1 - # - 192.18.0.2 - # # you can change the listen ip:port inside the container like this: - # entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:5000" - # healthcheck: - # test: curl -fs "http://localhost:5000/api/health" || exit 1 - # interval: 10s - # # or install custom packages for shutdown - # entrypoint: /bin/sh -c "apk update && apk add --no-cache && rm -rf /var/cache/apk/* && ./upsnap serve --http 0.0.0.0:8090" + upsnap: + container_name: upsnap + image: ghcr.io/seriousm4x/upsnap:4 + network_mode: host + restart: unless-stopped + volumes: + - ./data:/app/pb_data + # environment: + # - TZ=Europe/Berlin # Set container timezone for cron schedules + # - 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 + # # dns is used for name resolution during network scan + # dns: + # - 192.18.0.1 + # - 192.18.0.2 + # # you can change the listen ip:port inside the container like this: + # entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:5000" + # healthcheck: + # test: curl -fs "http://localhost:5000/api/health" || exit 1 + # interval: 10s + # # or install custom packages for shutdown + # entrypoint: /bin/sh -c "apk update && apk add --no-cache && rm -rf /var/cache/apk/* && ./upsnap serve --http 0.0.0.0:8090"