2026-01-24 23:18:24 +00:00
|
|
|
app:
|
|
|
|
|
id: fedimint
|
2026-06-21 05:11:07 -04:00
|
|
|
name: Fedimint Guardian
|
2026-02-17 15:03:34 +00:00
|
|
|
version: 0.10.0
|
|
|
|
|
description: Federated Bitcoin minting service with built-in Guardian UI. Privacy-preserving Bitcoin custody.
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
container:
|
2026-06-11 00:24:20 -04:00
|
|
|
image: 146.59.87.168:3000/lfg2025/fedimintd:v0.10.0
|
2026-01-24 23:18:24 +00:00
|
|
|
pull_policy: if-not-present
|
2026-04-28 15:00:58 -04:00
|
|
|
network: archy-net
|
2026-06-11 00:24:20 -04:00
|
|
|
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
|
2026-04-28 15:00:58 -04:00
|
|
|
derived_env:
|
|
|
|
|
- key: FM_P2P_URL
|
|
|
|
|
template: fedimint://{{HOST_MDNS}}:8173
|
|
|
|
|
- key: FM_API_URL
|
|
|
|
|
template: ws://{{HOST_MDNS}}:8174
|
2026-07-22 22:07:15 -04:00
|
|
|
# Resolves to whichever bitcoin container is running (Knots/Core/future
|
|
|
|
|
# distro) instead of a hardcoded name — the guardian works on any node
|
|
|
|
|
# regardless of which Bitcoin software it runs.
|
|
|
|
|
- key: FM_BITCOIND_URL
|
|
|
|
|
template: "http://{{BITCOIN_HOST}}:8332"
|
2026-04-28 15:00:58 -04:00
|
|
|
secret_env:
|
|
|
|
|
- key: FM_BITCOIND_PASSWORD
|
|
|
|
|
secret_file: bitcoin-rpc-password
|
2026-05-05 11:29:18 -04:00
|
|
|
data_uid: "1000:1000"
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
dependencies:
|
|
|
|
|
- app_id: bitcoin-core
|
2026-04-28 15:00:58 -04:00
|
|
|
version: ">=26.0"
|
2026-01-24 23:18:24 +00:00
|
|
|
- storage: 20Gi
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
resources:
|
|
|
|
|
cpu_limit: 4
|
|
|
|
|
memory_limit: 4Gi
|
|
|
|
|
disk_limit: 20Gi
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
security:
|
|
|
|
|
capabilities: []
|
|
|
|
|
readonly_root: true
|
|
|
|
|
network_policy: isolated
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
ports:
|
|
|
|
|
- host: 8173
|
|
|
|
|
container: 8173
|
2026-04-28 15:00:58 -04:00
|
|
|
protocol: tcp
|
2026-08-05 08:46:09 -04:00
|
|
|
auth: none
|
|
|
|
|
auth_rationale: >-
|
|
|
|
|
Fedimint guardian consensus. Other guardians speak the federation's own
|
|
|
|
|
authenticated protocol here; a login page would break consensus.
|
2026-01-24 23:18:24 +00:00
|
|
|
- host: 8174
|
|
|
|
|
container: 8174
|
2026-04-28 15:00:58 -04:00
|
|
|
protocol: tcp
|
2026-08-05 08:46:09 -04:00
|
|
|
auth: none
|
|
|
|
|
auth_rationale: >-
|
|
|
|
|
Fedimint guardian API for federation clients, which authenticate to the
|
|
|
|
|
federation itself and cannot hold a browser session.
|
2026-06-11 00:24:20 -04:00
|
|
|
# Public launch port 8175 is owned by archy-fedimint-ui, which serves a
|
|
|
|
|
# wait page while Bitcoin syncs and proxies here after fedimintd starts.
|
2026-08-05 08:46:09 -04:00
|
|
|
# Declared HERE because that companion has no manifest of its own, and the
|
|
|
|
|
# gate keys on the port rather than the container: without this entry it
|
|
|
|
|
# served the Guardian UI unauthenticated on every interface and never
|
|
|
|
|
# appeared in the audit. Its nginx is pinned to 127.0.0.1
|
|
|
|
|
# (docker/fedimint-ui/nginx.conf) so the gate can own the outside.
|
|
|
|
|
- host: 8175
|
|
|
|
|
container: 8175
|
|
|
|
|
protocol: tcp
|
|
|
|
|
bind: 127.0.0.1
|
|
|
|
|
auth: gated
|
2026-06-11 00:24:20 -04:00
|
|
|
- host: 8177
|
2026-02-17 15:03:34 +00:00
|
|
|
container: 8175
|
2026-04-28 15:00:58 -04:00
|
|
|
protocol: tcp
|
2026-08-04 06:09:37 -04:00
|
|
|
bind: 127.0.0.1
|
|
|
|
|
auth: local
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
volumes:
|
|
|
|
|
- type: bind
|
|
|
|
|
source: /var/lib/archipelago/fedimint
|
2026-04-28 15:00:58 -04:00
|
|
|
target: /data
|
2026-01-24 23:18:24 +00:00
|
|
|
options: [rw]
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
environment:
|
2026-04-28 15:00:58 -04:00
|
|
|
- FM_DATA_DIR=/data
|
2026-07-22 22:07:15 -04:00
|
|
|
# FM_BITCOIND_URL comes from derived_env ({{BITCOIN_HOST}}) above, not a
|
|
|
|
|
# hardcoded name — do not re-add it here.
|
2026-04-28 15:00:58 -04:00
|
|
|
- FM_BITCOIND_USERNAME=archipelago
|
2026-02-17 15:03:34 +00:00
|
|
|
- FM_BITCOIN_NETWORK=bitcoin
|
2026-04-28 15:00:58 -04:00
|
|
|
- FM_BIND_P2P=0.0.0.0:8173
|
|
|
|
|
- FM_BIND_API=0.0.0.0:8174
|
2026-02-17 15:03:34 +00:00
|
|
|
- FM_BIND_UI=0.0.0.0:8175
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-01-24 23:18:24 +00:00
|
|
|
health_check:
|
|
|
|
|
type: http
|
2026-02-17 15:03:34 +00:00
|
|
|
endpoint: http://localhost:8175
|
|
|
|
|
path: /
|
2026-01-24 23:18:24 +00:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
2026-04-28 15:00:58 -04:00
|
|
|
|
2026-06-11 00:24:20 -04:00
|
|
|
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
|