archy/apps/fedimint/manifest.yml

92 lines
2.3 KiB
YAML
Raw Permalink Normal View History

2026-01-24 23:18:24 +00:00
app:
id: fedimint
name: Fedimint Guardian
version: 0.10.0
description: Federated Bitcoin minting service with built-in Guardian UI. Privacy-preserving Bitcoin custody.
2026-01-24 23:18:24 +00:00
container:
image: 146.59.87.168:3000/lfg2025/fedimintd:v0.10.0
2026-01-24 23:18:24 +00:00
pull_policy: if-not-present
network: archy-net
entrypoint: ["sh", "-lc"]
custom_args:
- |-
until state="$(curl -sS --connect-timeout 5 -m 45 -u "$FM_BITCOIND_USERNAME:$FM_BITCOIND_PASSWORD" -H "Content-Type: application/json" --data-binary '{"jsonrpc":"1.0","id":"fedimint-wait","method":"getblockchaininfo","params":[]}' "$FM_BITCOIND_URL/")" && echo "$state" | grep -q '"initialblockdownload":false'; do
echo "Waiting for Bitcoin RPC sync at $FM_BITCOIND_URL...";
sleep 30;
done;
exec fedimintd
derived_env:
- key: FM_P2P_URL
template: fedimint://{{HOST_MDNS}}:8173
- key: FM_API_URL
template: ws://{{HOST_MDNS}}:8174
secret_env:
- key: FM_BITCOIND_PASSWORD
secret_file: bitcoin-rpc-password
2026-05-05 11:29:18 -04:00
data_uid: "1000:1000"
2026-01-24 23:18:24 +00:00
dependencies:
- app_id: bitcoin-core
version: ">=26.0"
2026-01-24 23:18:24 +00:00
- storage: 20Gi
2026-01-24 23:18:24 +00:00
resources:
cpu_limit: 4
memory_limit: 4Gi
disk_limit: 20Gi
2026-01-24 23:18:24 +00:00
security:
capabilities: []
readonly_root: true
network_policy: isolated
2026-01-24 23:18:24 +00:00
ports:
- host: 8173
container: 8173
protocol: tcp
2026-01-24 23:18:24 +00:00
- host: 8174
container: 8174
protocol: tcp
# Public launch port 8175 is owned by archy-fedimint-ui, which serves a
# wait page while Bitcoin syncs and proxies here after fedimintd starts.
- host: 8177
container: 8175
protocol: tcp
2026-01-24 23:18:24 +00:00
volumes:
- type: bind
source: /var/lib/archipelago/fedimint
target: /data
2026-01-24 23:18:24 +00:00
options: [rw]
2026-01-24 23:18:24 +00:00
environment:
- FM_DATA_DIR=/data
- FM_BITCOIND_URL=http://bitcoin-knots:8332
- FM_BITCOIND_USERNAME=archipelago
- FM_BITCOIN_NETWORK=bitcoin
- FM_BIND_P2P=0.0.0.0:8173
- FM_BIND_API=0.0.0.0:8174
- FM_BIND_UI=0.0.0.0:8175
2026-01-24 23:18:24 +00:00
health_check:
type: http
endpoint: http://localhost:8175
path: /
2026-01-24 23:18:24 +00:00
interval: 30s
timeout: 5s
retries: 3
interfaces:
main:
name: Guardian UI
description: Fedimint Guardian wait/proxy UI
type: ui
port: 8175
protocol: http
path: /
2026-01-24 23:18:24 +00:00
bitcoin_integration:
rpc_access: admin
sync_required: true