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
|
|
|
|
|
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-01-24 23:18:24 +00:00
|
|
|
- host: 8174
|
|
|
|
|
container: 8174
|
2026-04-28 15:00:58 -04:00
|
|
|
protocol: tcp
|
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.
|
|
|
|
|
- host: 8177
|
2026-02-17 15:03:34 +00:00
|
|
|
container: 8175
|
2026-04-28 15:00:58 -04:00
|
|
|
protocol: tcp
|
|
|
|
|
|
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-06-11 00:24:20 -04:00
|
|
|
- FM_BITCOIND_URL=http://bitcoin-knots:8332
|
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
|