Author the IndeedHub stack as 7 manifests (postgres/redis/minio/relay/api/
ffmpeg + frontend) and route install_indeedhub_stack through the
orchestrator first (immich pattern), falling back to the legacy installer
only when the manifests aren't deployed.
Data-preserving by construction — the manifests reproduce the live install
exactly so an existing node ADOPTS rather than recreates:
- container_name = the live hyphenated names the runtime already references
(health_monitor tiers/deps, crash_recovery).
- named volumes indeedhub-{postgres,redis,minio,relay}-data (not bind mounts).
- dedicated indeedhub-net + network_aliases [postgres|redis|minio|relay|api]
so the api/ffmpeg env hostnames and the frontend nginx upstreams resolve
unchanged.
- generated_secrets (indeedhub-db-password/-minio-password owned by their
backends, indeedhub-jwt by the api) reuse the live /var/lib/archipelago/
secrets values (ensure_one no-ops on existing files; postgres pw is fixed
at PGDATA init). minio user "indeeadmin" + AES_MASTER_SECRET literal kept.
The frontend carries the post_install hook (#20) that replaces the hardcoded
patch_indeedhub_nostr_provider: strip X-Frame-Options, refresh
nostr-provider.js from /opt/archipelago/web-ui, inject the <script> if
absent, reload nginx — defensive/idempotent since indeedhub:1.0.0 already
bakes these. Frontend manifest also corrected off its dead Next.js shape
(health check now nginx :7777, tmpfs /run + /var/cache/nginx).
Builds + unit-tested; live adoption/lifecycle verification on .228 next.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
96 lines
3.0 KiB
YAML
96 lines
3.0 KiB
YAML
app:
|
|
id: indeedhub
|
|
name: IndeeHub
|
|
version: "1.0.0"
|
|
description: Bitcoin documentary streaming platform featuring God Bless Bitcoin and other educational content about Bitcoin, sovereignty, and decentralized technology. Sign in with your Nostr identity.
|
|
category: community
|
|
|
|
# The user-facing launcher (app_id "indeedhub"). Container is named "indeedhub"
|
|
# (matches the runtime's per-app references + the live container, so the
|
|
# orchestrator adopts it). Its nginx (listen 7777) proxies to the backends by
|
|
# their short aliases on indeedhub-net: api:4000, minio:9000, relay:8080.
|
|
container_name: indeedhub
|
|
|
|
container:
|
|
image: 146.59.87.168:3000/lfg2025/indeedhub:1.0.0
|
|
pull_policy: if-not-present
|
|
network: indeedhub-net
|
|
|
|
dependencies:
|
|
- app_id: indeedhub-api
|
|
- storage: 1Gi
|
|
|
|
resources:
|
|
memory_limit: 512Mi
|
|
disk_limit: 1Gi
|
|
|
|
security:
|
|
capabilities: []
|
|
readonly_root: false
|
|
network_policy: isolated
|
|
|
|
ports:
|
|
- host: 7778
|
|
container: 7777
|
|
protocol: tcp # Web UI. Port 7777 on the host is reserved for the Nostr relay.
|
|
|
|
# Writable scratch the baked nginx needs; matches the legacy installer's
|
|
# --tmpfs /run + /var/cache/nginx.
|
|
volumes:
|
|
- type: tmpfs
|
|
target: /run
|
|
options: [rw, nosuid, nodev, size=16m]
|
|
- type: tmpfs
|
|
target: /var/cache/nginx
|
|
options: [rw, nosuid, nodev, size=32m]
|
|
|
|
environment: []
|
|
|
|
# Defensive + idempotent. The current indeedhub:1.0.0 image already bakes the
|
|
# iframe-friendly nginx (X-Frame-Options omitted, nostr-provider.js present +
|
|
# <script> injected), so these are mostly no-ops on that tag — but they keep
|
|
# the app iframe-loadable + the provider script fresh for any image build that
|
|
# predates the bake. copy_from_host pulls /opt/archipelago/web-ui/nostr-provider.js
|
|
# (kept current by frontend OTA releases). Replaces the legacy hardcoded
|
|
# patch_indeedhub_nostr_provider() Rust hook.
|
|
hooks:
|
|
post_install:
|
|
- exec: ["sed", "-i", "/X-Frame-Options/d", "/etc/nginx/conf.d/default.conf"]
|
|
- copy_from_host:
|
|
src: "web-ui/nostr-provider.js"
|
|
dest: "/usr/share/nginx/html/nostr-provider.js"
|
|
- exec: ["sh", "-c", "grep -q nostr-provider /etc/nginx/conf.d/default.conf || sed -i 's#</head>#<script src=\"/nostr-provider.js\"></script></head>#' /etc/nginx/conf.d/default.conf"]
|
|
- exec: ["nginx", "-s", "reload"]
|
|
|
|
health_check:
|
|
type: http
|
|
endpoint: http://localhost:7777
|
|
path: /
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
interfaces:
|
|
main:
|
|
name: Web UI
|
|
description: Stream Bitcoin documentaries with Nostr identity
|
|
type: ui
|
|
port: 7778
|
|
protocol: http
|
|
path: /
|
|
|
|
metadata:
|
|
author: Indeehub Team
|
|
icon: /assets/img/app-icons/indeedhub.png
|
|
website: https://indeedhub.com
|
|
repo: https://github.com/indeedhub/indeedhub
|
|
license: MIT
|
|
tags:
|
|
- bitcoin
|
|
- documentary
|
|
- streaming
|
|
- media
|
|
- education
|
|
- nostr
|