From 283ad4abd9754df2c12323c1092722998f8d2f01 Mon Sep 17 00:00:00 2001 From: Lancelot-Enguerrand Date: Mon, 9 Dec 2024 17:22:00 +0100 Subject: [PATCH] Add dynamic compose for teddit --- apps/teddit/config.json | 5 +-- apps/teddit/docker-compose.json | 54 +++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 apps/teddit/docker-compose.json diff --git a/apps/teddit/config.json b/apps/teddit/config.json index 41f50603d5..9ffc834403 100644 --- a/apps/teddit/config.json +++ b/apps/teddit/config.json @@ -4,9 +4,10 @@ "available": true, "deprecated": true, "exposable": true, + "dynamic_config": true, "port": 8124, "id": "teddit", - "tipi_version": 2, + "tipi_version": 3, "version": "latest", "categories": ["social"], "description": "A free and open source alternative Reddit front-end focused on privacy. Inspired by the Nitter project.", @@ -16,5 +17,5 @@ "form_fields": [], "supported_architectures": ["arm64", "amd64"], "created_at": 1691943801422, - "updated_at": 1723566285000 + "updated_at": 1733761319987 } diff --git a/apps/teddit/docker-compose.json b/apps/teddit/docker-compose.json new file mode 100644 index 0000000000..2e71ee51db --- /dev/null +++ b/apps/teddit/docker-compose.json @@ -0,0 +1,54 @@ +{ + "services": [ + { + "name": "teddit", + "image": "teddit/teddit:latest", + "isMain": true, + "internalPort": 8080, + "environment": { + "REDIS_HOST": "teddit-redis", + "DOMAIN": "${APP_DOMAIN}", + "THEME": "dark", + "HTTPS_ENABLED": "false", + "REDIRECT_HTTP_TO_HTTPS": "false", + "REDIRECT_WWW": "false" + }, + "dependsOn": [ + "teddit-redis" + ], + "healthCheck": { + "test": [ + "CMD", + "wget", + "--no-verbose", + "--tries=1", + "--spider", + "http://localhost:8080/about" + ], + "interval": "1m", + "timeout": "3s", + "retries": 3 + } + }, + { + "name": "teddit-redis", + "image": "redis:alpine", + "volumes": [ + { + "hostPath": "${APP_DATA_DIR}/data/redis", + "containerPath": "/data" + } + ], + "healthCheck": { + "test": [ + "CMD", + "redis-cli", + "ping" + ], + "interval": "1s", + "timeout": "3s", + "retries": 30 + } + } + ] +}