From 2140a1d9779f703b26cd439949077235c05ea4af Mon Sep 17 00:00:00 2001 From: Lancelot-Enguerrand Date: Mon, 9 Dec 2024 17:21:13 +0100 Subject: [PATCH] Add dynamic compose for spoolman --- apps/spoolman/config.json | 5 +++-- apps/spoolman/docker-compose.json | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 apps/spoolman/docker-compose.json diff --git a/apps/spoolman/config.json b/apps/spoolman/config.json index f4802bfe4f..186a221396 100644 --- a/apps/spoolman/config.json +++ b/apps/spoolman/config.json @@ -3,9 +3,10 @@ "available": true, "port": 7912, "exposable": true, + "dynamic_config": true, "id": "spoolman", "description": "Spoolman is a web service that helps you keep track of your filament spools and how they are being used. It acts as a database, where other printer software such as Octoprint and Moonraker can interact with to have a centralized place for spool information. For example, if used together with Moonraker, your spool weight will automatically be reduced as your print is progressing.", - "tipi_version": 9, + "tipi_version": 10, "version": "0.21.0", "categories": ["utilities", "automation"], "short_desc": "Keep track of your inventory of 3D-printer filament spools", @@ -13,5 +14,5 @@ "source": "https://github.com/Donkie/Spoolman", "supported_architectures": ["arm64", "amd64"], "created_at": 1691943801422, - "updated_at": 1733068838000 + "updated_at": 1733761273730 } diff --git a/apps/spoolman/docker-compose.json b/apps/spoolman/docker-compose.json new file mode 100644 index 0000000000..99809f2d47 --- /dev/null +++ b/apps/spoolman/docker-compose.json @@ -0,0 +1,21 @@ +{ + "services": [ + { + "name": "spoolman", + "image": "ghcr.io/donkie/spoolman:0.21.0", + "isMain": true, + "internalPort": 8000, + "environment": { + "TZ": "${TZ}", + "PUID": "0", + "PGID": "0" + }, + "volumes": [ + { + "hostPath": "${APP_DATA_DIR}/data", + "containerPath": "/home/app/.local/share/spoolman" + } + ] + } + ] +}