Skip to content

Instantly share code, notes, and snippets.

@douglaz
Last active July 9, 2025 20:35
Show Gist options
  • Save douglaz/e0cc8c130f442a60a9b6656b468691a2 to your computer and use it in GitHub Desktop.
Save douglaz/e0cc8c130f442a60a9b6656b468691a2 to your computer and use it in GitHub Desktop.
docker-compose for a fedimint
# Bitcoin auth information
# generate with https://jlopp.github.io/bitcoin-core-rpc-auth-generator/,
# default is user: bitcoin, pass: bitcoin
BITCOIND_RPC_AUTH=bitcoin:54ae356e13a76dc8068e960eb43193cb$$efeeb347a1f0b4a7b7832cc26e68861bc46f89126a8e136ff9932cad47739041
# This domain should point to the machine fedimintd is being deployed to
FM_DOMAIN=my-super-host.com
# Where bitcoind is reachable
FM_BITCOIN_RPC_KIND=bitcoind
FM_BITCOIN_RPC_URL=http://bitcoin:bitcoin@bitcoin:8332
# For testing or fallback one can also use esplora
# FM_BITCOIN_RPC_KIND=esplora
# FM_BITCOIN_RPC_URL=https://blockstream.info/api/
# fedimintd image
FEDIMINTD_IMAGE=fedimint/fedimintd:v0.7.2
# See the .env file for config options
services:
bitcoin:
image: "bitcoin/bitcoin:28.1"
container_name: "bitcoin"
volumes:
- bitcoind_data:/home/bitcoin/.bitcoin
ports:
- "8333:8333"
command: -printtoconsole -rpcallowip=0.0.0.0/0 -rpcbind=0.0.0.0 -rpcauth="${BITCOIND_RPC_AUTH}" -dbcache=2200 -prune=550 -maxmempool=5 -par=2 -rpcthreads=4 -maxconnections=32 -server=1
restart: unless-stopped
fedimintd:
image: ${FEDIMINTD_IMAGE}
volumes:
- fedimintd_data:/data
ports:
- 0.0.0.0:8173:8173/tcp # p2p tls
- 0.0.0.0:8173:8173/udp # p2p iroh
- 0.0.0.0:8174:8174/tcp # api
- 0.0.0.0:8175:8175/tcp # ui
environment:
- FM_BITCOIN_RPC_KIND=${FM_BITCOIN_RPC_KIND}
- FM_BITCOIN_RPC_URL=${FM_BITCOIN_RPC_URL}
- FM_BITCOIN_NETWORK=bitcoin
- FM_BIND_P2P=0.0.0.0:8173
- FM_P2P_URL=fedimint://${FM_DOMAIN}:8173
- FM_API_URL=wss://${FM_DOMAIN}/ws/
- FM_BIND_API_WS=0.0.0.0:8174
- FM_BIND_UI=0.0.0.0:8175
restart: always
volumes:
bitcoind_data:
letsencrypt_data:
fedimintd_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment