mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-28 16:19:40 +03:00
Co-authored-by: Kai Chappel <kaichappel@users.noreply.github.com>
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: fedimint-gateway_gatewayd_1
|
|
APP_PORT: 8178 # ui
|
|
|
|
gatewayd:
|
|
image: fedimint/gatewayd:v0.13.1@sha256:bad6609dcb9f2df76faeba197fd408aae9540b1257f65cff0176a738528908eb
|
|
restart: on-failure
|
|
ports:
|
|
- 8177:8177/udp # iroh
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data:/data
|
|
- ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
|
|
environment:
|
|
FM_GATEWAY_DATA_DIR: "/data"
|
|
FM_GATEWAY_NETWORK: ${APP_BITCOIN_NETWORK_ELECTRS}
|
|
FM_GATEWAY_LISTEN_ADDR: 0.0.0.0:8178
|
|
FM_GATEWAY_IROH_LISTEN_ADDR: 0.0.0.0:8177
|
|
APP_PASSWORD: "${APP_PASSWORD}"
|
|
|
|
# LND connection environment variables
|
|
FM_LND_RPC_ADDR: "https://${APP_LIGHTNING_NODE_IP}:${APP_LIGHTNING_NODE_GRPC_PORT}"
|
|
FM_LND_TLS_CERT: "/lnd/tls.cert"
|
|
FM_LND_MACAROON: "/lnd/data/chain/bitcoin/${APP_BITCOIN_NETWORK}/admin.macaroon"
|
|
|
|
# Bitcoind connection environment variables
|
|
FM_BITCOIND_USERNAME: ${APP_BITCOIN_RPC_USER}
|
|
FM_BITCOIND_PASSWORD: ${APP_BITCOIN_RPC_PASS}
|
|
FM_BITCOIND_URL: "http://${APP_BITCOIN_NODE_IP}:${APP_BITCOIN_RPC_PORT}"
|
|
# Bcrypt-hash the app password before handing it to gatewayd. `$$` escapes a
|
|
# literal `$` for Compose interpolation, so the container's shell sees a single `$`.
|
|
entrypoint:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
set -e
|
|
FM_GATEWAY_BCRYPT_PASSWORD_HASH=$$(gateway-cli create-password-hash "$$APP_PASSWORD" | tr -d '"')
|
|
export FM_GATEWAY_BCRYPT_PASSWORD_HASH
|
|
exec gatewayd lnd
|