Files
MetaAppStore/Apps/MetaFeederGutenberg/docker-compose.yml
T

110 lines
4.4 KiB
YAML

name: metafeedergutenberg
# =============================================================================
# MetaFeeder · Gutenberg — a standalone Project Gutenberg feeder for MetaMesh.
#
# Split out of MetaGateway so you can run only the feeders you want. Headless
# (no enrichment, no config needed): it finds public-domain books and returns
# the records to the MetaGateway core, which stores + announces them. The
# gateway must list this feeder's URL (`http://metafeedergutenberg-feeder:8080`) in
# its feeders config (both on the shared `pcs` network).
# =============================================================================
services:
# ---------------------------------------------------------------------------
# metafeedergutenberg-feeder — the gutenberg feeder. The gateway reaches it on `pcs`
# for discovery/query; it returns records (no meta-core, no enrichment).
# ---------------------------------------------------------------------------
metafeedergutenberg-feeder:
image: ipcr-watch.nsl.sh/ipns/metadec.eth/metadec.eth/meta-feeder-gutenberg:1.0.5
cpu_shares: 30
container_name: metafeedergutenberg-feeder
hostname: metafeedergutenberg-feeder
restart: unless-stopped
user: "0:0"
expose:
- 8080
environment:
RUST_LOG: "info,meta_feeder=info"
META_FEEDER_STATE_DIR: "/data/meta-feeder"
TZ: "$TZ"
volumes:
# Persist feeder config.json + redb cache so it survives recreate.
- ${DATA_ROOT:-/DATA}/AppData/metafeedergutenberg/state:/data/meta-feeder:rw
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
networks:
- pcs
networks:
pcs:
name: ${APP_NET:-pcs}
external: true
x-casaos:
architectures:
- amd64
- arm64
author: Worph Team
category: Media
developer: Aptero Team
description:
en_us: |
**A standalone Project Gutenberg feeder for the MetaMesh network.**
MetaFeeder · Gutenberg bridges public-domain books from Project Gutenberg into
MetaMesh so they surface across the federation, plus **Open Library** work
cards — the book identity tier that groups editions under one work. Split out of MetaGateway so
you can run only the feeders you want — headless, no setup required.
**Requires (from the store):**
- **MetaGateway** — its meta-core stores the resolved records and announces
them to the swarm. The gateway must list this feeder in its config.
fr_fr: |
**Un feeder Project Gutenberg autonome pour le réseau MetaMesh.**
MetaFeeder · Gutenberg connecte les livres du domaine public de Project
Gutenberg à MetaMesh. Détaché de MetaGateway pour n'exécuter que les feeders
souhaités — sans configuration. **Nécessite** l'app **MetaGateway**.
tagline:
en_us: Project Gutenberg editions + Open Library work cards for MetaMesh
fr_fr: Éditions Project Gutenberg + fiches Open Library pour MetaMesh
title:
en_us: MetaFeeder · Gutenberg
icon: https://cdn.jsdelivr.net/gh/Worph/MetaAppStore@main/Apps/MetaFeederGutenberg/icon.png
thumbnail: https://cdn.jsdelivr.net/gh/Worph/MetaAppStore@main/Apps/MetaFeederGutenberg/thumbnail.png
store_app_id: metafeedergutenberg
is_uncontrolled: false
tips:
before_install:
en_us: |
**Install order:** install **MetaGateway** first.
**After installing this app:** in **MetaGateway**, make sure this feeder
is listed in its feeders config (`http://metafeedergutenberg-feeder:8080`) so
it gets discovered (or add it from the gateway dashboard). No other setup.
**No web UI of its own:** configure it from the **MetaGateway** dashboard → this feeder → *configure* (the gateway proxies this feeder's config page, behind the gateway's login).
# Maison (Yundera dashboard) configuration. Read in preference to x-casaos.
# schema_version 2 is required for `folders`: an older Maison refuses the app
# outright rather than starting it without its directories.
x-compose-app:
schema_version: 2
# Created and chowned by Maison before any image is pulled, before any hook
# runs and before the containers start — on the first boot and every one after.
# Compose would otherwise create a missing bind source as a root-owned dir.
folders:
- path: /DATA/AppData/metafeedergutenberg/state
user: $PUID
group: $PGID