From cc341b94b0b9eb1f24230eb8898d26e30b6af5a5 Mon Sep 17 00:00:00 2001 From: Lancelot Date: Sat, 21 Dec 2024 11:49:41 +0100 Subject: [PATCH] Add dynamic compose for flatnotes (#6051) --- apps/flatnotes/config.json | 5 +++-- apps/flatnotes/docker-compose.json | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 apps/flatnotes/docker-compose.json diff --git a/apps/flatnotes/config.json b/apps/flatnotes/config.json index 89d96d7bcf..473c0257bb 100644 --- a/apps/flatnotes/config.json +++ b/apps/flatnotes/config.json @@ -3,9 +3,10 @@ "name": "flatnotes", "available": true, "exposable": true, + "dynamic_config": true, "id": "flatnotes", "port": 8137, - "tipi_version": 31, + "tipi_version": 32, "version": "5.3.2", "categories": ["utilities"], "description": "A self-hosted, database-less note taking web app that utilises a flat folder of markdown files for storage.", @@ -51,5 +52,5 @@ ], "supported_architectures": ["arm64", "amd64"], "created_at": 1691943801422, - "updated_at": 1733856109000 + "updated_at": 1734113808714 } diff --git a/apps/flatnotes/docker-compose.json b/apps/flatnotes/docker-compose.json new file mode 100644 index 0000000000..55e247a6fe --- /dev/null +++ b/apps/flatnotes/docker-compose.json @@ -0,0 +1,23 @@ +{ + "services": [ + { + "name": "flatnotes", + "image": "dullage/flatnotes:v5.3.2", + "isMain": true, + "internalPort": 8080, + "environment": { + "FLATNOTES_AUTH_TYPE": "${FLATNOTES_AUTH_TYPE}", + "FLATNOTES_USERNAME": "${FLATNOTES_USERNAME}", + "FLATNOTES_PASSWORD": "${FLATNOTES_PASSWORD}", + "FLATNOTES_SECRET_KEY": "${FLATNOTES_SECRET_KEY}", + "FLATNOTES_TOTP_KEY": "${FLATNOTES_TOTP_KEY}" + }, + "volumes": [ + { + "hostPath": "${APP_DATA_DIR}/data", + "containerPath": "/data" + } + ] + } + ] +}