sap-drawio: add 'Sketch to SAP BTP' custom-store app (FastAPI+React, single-port, seed-on-first-run SQLite, exposed via auto-SSO)

This commit is contained in:
2026-07-22 09:01:10 -07:00
parent e35d5589b6
commit 5f6499125a
6 changed files with 244 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
{
"$schema": "https://schemas.runtipi.io/dynamic-compose.json",
"schemaVersion": 2,
"services": [
{
"name": "sap-drawio",
"image": "git.alexzaw.dev/alexz/sap-drawio:latest",
"isMain": true,
"internalPort": 8011,
"environment": [
{ "key": "TZ", "value": "${TZ}" },
{ "key": "OLLAMA_URL", "value": "${OLLAMA_URL}" },
{ "key": "VISION_MODEL", "value": "${VISION_MODEL}" },
{ "key": "VALIDATOR_MODEL", "value": "${VALIDATOR_MODEL}" },
{ "key": "BRANDFETCH_API_KEY", "value": "${BRANDFETCH_API_KEY}" },
{ "key": "SQLITE_DB_PATH", "value": "/data/app.db" },
{ "key": "CORS_ORIGINS", "value": "https://sap-drawio.alexzaw.dev" }
],
"volumes": [
{ "hostPath": "${APP_DATA_DIR}/data", "containerPath": "/data", "readOnly": false }
],
"healthCheck": {
"test": "python -c \"import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8011/api/health', timeout=5).status==200 else 1)\"",
"interval": "30s",
"timeout": "10s",
"retries": 3,
"startPeriod": "40s"
}
}
]
}