mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-12-05 02:44:39 +03:00
65 lines
2.5 KiB
YAML
65 lines
2.5 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: bark-wallet_web_1
|
|
APP_PORT: 8080
|
|
|
|
web:
|
|
image: secondark/bark-web:0.12.0@sha256:498e13dfbea608a5be0ec46b20decc3ead2ff6d14a6c23c10847f7771c61b15f
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
depends_on:
|
|
- api
|
|
- barkd
|
|
|
|
api:
|
|
image: secondark/bark-web-api:0.12.0@sha256:622bc3f0f57d07dc8bd5c8923f66f66cd4b429b5958042cd88d77c07783ee164
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
# Other apps share Umbrel's Docker network and can reach this API (directly or through the web container)
|
|
# without passing Umbrel authentication, so the API must enforce its own login.
|
|
# Seed the password and session secret files from per-install secrets before starting the API;
|
|
# the wallet directory is mounted read-only, so they live inside the container.
|
|
command: >
|
|
sh -c "umask 077
|
|
&& mkdir -p /tmp/auth
|
|
&& printf '%s' \"$$APP_PASSWORD\" > /tmp/auth/ui_password
|
|
&& printf '%s' \"$$SESSION_SECRET\" > /tmp/auth/ui_session_secret
|
|
&& unset APP_PASSWORD SESSION_SECRET
|
|
&& exec node dist/index.js"
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/wallet:/wallet-data:ro
|
|
environment:
|
|
PORT: 4001
|
|
UI_AUTH: "true"
|
|
UI_PASSWORD_FILE: /tmp/auth/ui_password
|
|
UI_SESSION_SECRET_FILE: /tmp/auth/ui_session_secret
|
|
APP_PASSWORD: ${APP_PASSWORD}
|
|
SESSION_SECRET: ${APP_BARK_WALLET_SESSION_SECRET}
|
|
WALLET_DIR: /wallet-data/.bark
|
|
WALLET_DATA_PATH: /Apps/bark-wallet/data/wallet/.bark/
|
|
# We usually use the full Umbrel container name here, but the web image's bundled nginx config also proxies to barkd.
|
|
BARKD_URL: http://barkd:4000
|
|
ARK_SERVER: https://ark.second.tech
|
|
CHAIN_SOURCE: https://mempool.second.tech/api
|
|
BARK_NETWORK: mainnet
|
|
depends_on:
|
|
- barkd
|
|
|
|
barkd:
|
|
image: secondark/bark:0.9.0@sha256:d865a4cda422e5c8e5a7d33e3de05a585bdef6867960050f18f0d96a387dbf11
|
|
# Fix bind mount ownership, then drop to UID 1000 so the API can read barkd's auth token.
|
|
user: "0:0"
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
# Enable the mnemonic endpoint for Bark Web's seed reveal flow.
|
|
# barkd requires its bearer token, and the API that holds it requires the Bark Wallet password.
|
|
command: >
|
|
sh -c "mkdir -p /data/.bark
|
|
&& chown -R 1000:1000 /data
|
|
&& exec setpriv --reuid 1000 --regid 1000 --clear-groups /usr/local/bin/barkd --port 4000 --host 0.0.0.0 --datadir /data/.bark --expose-mnemonic"
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/wallet:/data
|