searxng: a search tool — tools-only, a stateless search has nothing to observe. icecast: status tool, emits stream.started/.stopped by diffing live mountpoints. photos: status/albums/recent tools, emits item.added (immich-shaped API, coded defensively since the stub ships a placeholder image — flagged in the code). Typecheck; manifests parse.
47 lines
986 B
JSON
47 lines
986 B
JSON
{
|
|
"module": "photos",
|
|
"version": "1",
|
|
"requires": [
|
|
"s3-bucket"
|
|
],
|
|
"contributes": {
|
|
"s3-bucket": {
|
|
"bucket": "photos"
|
|
}
|
|
},
|
|
"binds": {
|
|
"s3-bucket": "/etc/photos/store.json"
|
|
},
|
|
"secrets": {
|
|
"s3-bucket": "/etc/photos/store.secret"
|
|
},
|
|
"emits": [
|
|
"module.photos.item.added"
|
|
],
|
|
"own-secrets": {
|
|
"broker": "/etc/photos/broker"
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "config",
|
|
"type": "directory",
|
|
"path": "/etc/photos",
|
|
"mode": "0750"
|
|
},
|
|
{
|
|
"id": "app",
|
|
"type": "container",
|
|
"name": "photos",
|
|
"image": "alpine@sha256:c64c687cbea9300178b30c95835354e34c4e4febc4badfe27102879de0483b5e",
|
|
"env": {
|
|
"PHOTOS_STORE": "/etc/photos/store.json",
|
|
"PHOTOS_STORE_SECRET_FILE": "/etc/photos/store.secret"
|
|
},
|
|
"volumes": [
|
|
"/etc/photos/store.json:/etc/photos/store.json:ro",
|
|
"/etc/photos/store.secret:/etc/photos/store.secret:ro"
|
|
]
|
|
}
|
|
]
|
|
}
|