{ "module": "sonarr", "version": "1", "provides": [ { "name": "sonarr-api", "scope": "mesh" } ], "serves": { "sonarr-api": { "scheme": "http", "port": 8989, "url-base": "" } }, "capabilities": [ "container-runtime" ], "emits": [ "episode.grabbed", "download.completed" ], "consumes": [], "own-secrets": { "broker": "/var/lib/mesh/sonarr/broker" }, "listens": [ { "name": "web", "port": 8989, "protocol": "tcp", "from": "mesh", "why": "managing series: its web UI, and the API other modules reach as sonarr-api" } ], "accesses": [ { "path": "/services/media/series", "mode": "read-write" }, { "path": "/services/media/anime", "mode": "read-write" }, { "path": "/services/media/downloads", "mode": "read-write" } ], "resources": [ { "id": "mesh-state", "type": "directory", "path": "/var/lib/mesh/sonarr", "mode": "0700" }, { "id": "state", "type": "directory", "mode": "0700", "place": "." }, { "id": "config", "type": "directory", "mode": "0700", "owner": "1000:1000" }, { "id": "server", "type": "container", "name": "sonarr", "image": "lscr.io/linuxserver/sonarr@sha256:a5c1a5fecbef946927ab90ad68df319ac5fe644057e5fc18cd993f01ac07b2b2", "env": { "PUID": "1000", "PGID": "1000", "TZ": "Etc/UTC" }, "ports": [ "8989" ], "volumes": [ "${dir:config}:/config", "/services/media/series:/series", "/services/media/anime:/anime", "/services/media/downloads:/downloads" ] }, { "id": "runtime", "type": "container", "name": "mesh-sonarr", "network": "host", "volumes": [ "/var/lib/mesh/sonarr/broker:/run/secrets/broker:ro", "${dir:config}:/var/lib/sonarr/config:ro" ], "env": { "MESH_BROKER_FILE": "/run/secrets/broker", "MESH_SONARR_URL": "http://127.0.0.1:${port:8989}", "MESH_SONARR_CONFIG_DIR": "/var/lib/sonarr/config" }, "artifact": "runtime" } ], "requires": [ "route" ], "contributes": { "route": { "label": "series", "endpoint": "web" } }, "binds": { "route": "${dir:state}/route.json" }, "build": { "on": [ { "arg": "BUILD_BASE", "module": "mesh-tools", "artifact": "build" }, { "arg": "RUNTIME_BASE", "module": "mesh-tools", "artifact": "runtime" } ], "artifacts": [ { "name": "runtime", "kind": "image", "from": "Dockerfile" } ] } }