mergedrop: 1.0.2 — add MongoDB sidecar + env, required by new vid-merger source

This commit is contained in:
2026-08-20 23:15:58 -07:00
parent 66a7bb82e2
commit a40228a495
3 changed files with 30 additions and 7 deletions
+25 -2
View File
@@ -4,7 +4,7 @@
"services": [
{
"name": "mergedrop",
"image": "git.alexzaw.dev/alexz/mergedrop:1.0.1",
"image": "git.alexzaw.dev/alexz/mergedrop:1.0.2",
"isMain": true,
"internalPort": 8000,
"environment": [
@@ -16,7 +16,9 @@
{ "key": "MERGEDROP_MAX_FILES", "value": "${MERGEDROP_MAX_FILES}" },
{ "key": "MERGEDROP_MAX_FILE_SIZE", "value": "${MERGEDROP_MAX_FILE_SIZE}" },
{ "key": "MERGEDROP_OUTPUT_MAX_AGE_HOURS", "value": "${MERGEDROP_OUTPUT_MAX_AGE_HOURS}" },
{ "key": "CORS_ORIGINS", "value": "*" }
{ "key": "CORS_ORIGINS", "value": "*" },
{ "key": "MONGO_URL", "value": "mongodb://mergedrop-db:27017" },
{ "key": "DB_NAME", "value": "mergedrop" }
],
"volumes": [
{
@@ -41,6 +43,27 @@
"timeout": "5s",
"retries": 3,
"startPeriod": "20s"
},
"dependsOn": {
"mergedrop-db": { "condition": "service_healthy" }
}
},
{
"name": "mergedrop-db",
"image": "mongo:7.0",
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/db",
"containerPath": "/data/db",
"readOnly": false
}
],
"healthCheck": {
"test": "mongosh --quiet --eval \"db.adminCommand('ping')\"",
"interval": "10s",
"timeout": "5s",
"retries": 5,
"startPeriod": "20s"
}
}
]