mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-27 16:08:47 +03:00
75 lines
2.4 KiB
YAML
75 lines
2.4 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: bassin_ui_1
|
|
APP_PORT: 8080
|
|
|
|
init:
|
|
image: alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
|
|
entrypoint:
|
|
- /bin/sh
|
|
- -ec
|
|
- |
|
|
mkdir -p /sv2
|
|
chmod 700 /sv2
|
|
chown 1000:1000 /config /sv2
|
|
if [ -f /config/ckpool.conf ]; then
|
|
chown 1000:1000 /config/ckpool.conf
|
|
exit 0
|
|
fi
|
|
apk add --no-cache envsubst
|
|
tmp=$$(mktemp /config/.ckpool.conf.XXXXXX)
|
|
trap 'rm -f "$$tmp"' EXIT
|
|
envsubst < /config/ckpool.conf.template > "$$tmp"
|
|
chown 1000:1000 "$$tmp"
|
|
chmod 600 "$$tmp"
|
|
ln -T "$$tmp" /config/ckpool.conf
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/config:/config
|
|
- ${APP_DATA_DIR}/data/sv2:/sv2
|
|
environment:
|
|
- APP_BITCOIN_NODE_IP=${APP_BITCOIN_NODE_IP}
|
|
- APP_BITCOIN_RPC_PORT=${APP_BITCOIN_RPC_PORT}
|
|
- APP_BITCOIN_RPC_USER=${APP_BITCOIN_RPC_USER}
|
|
- APP_BITCOIN_RPC_PASS=${APP_BITCOIN_RPC_PASS}
|
|
- APP_BITCOIN_ZMQ_HASHBLOCK_PORT=${APP_BITCOIN_ZMQ_HASHBLOCK_PORT}
|
|
- APP_BITCOIN_IPC_SOCKET_RELATIVE_PATH=${APP_BITCOIN_IPC_SOCKET_RELATIVE_PATH:-node.sock}
|
|
|
|
ckpool:
|
|
image: ghcr.io/blockdyor/docker-ckpool-solo:v1.2.0-3@sha256:e46169610041049b1f6d276a30ec498c20603812db2dab42ae2379e686d71d8f
|
|
command: ["-k", "-B", "-c", "/config/ckpool.conf"]
|
|
user: "1000:1000"
|
|
environment:
|
|
- MALLOC_ARENA_MAX=2
|
|
- APP_BITCOIN_IPC_ENABLED=${APP_BITCOIN_IPC_ENABLED:-false}
|
|
- APP_BITCOIN_IPC_SOCKET_RELATIVE_PATH=${APP_BITCOIN_IPC_SOCKET_RELATIVE_PATH:-node.sock}
|
|
depends_on:
|
|
init:
|
|
condition: service_completed_successfully
|
|
restart: on-failure
|
|
stop_grace_period: 30s
|
|
ports:
|
|
- "3456:3333/tcp"
|
|
- "3457:3336/tcp"
|
|
- "3458:3337/tcp"
|
|
volumes:
|
|
- ${APP_BITCOIN_DATA_DIR}:/bitcoin:ro
|
|
- ${APP_DATA_DIR}/data/config:/config:ro
|
|
- ${APP_DATA_DIR}/data/sv2:/sv2
|
|
- ${APP_DATA_DIR}/data/www:/www
|
|
|
|
ui:
|
|
image: ghcr.io/blockdyor/bassin-ui:457b8f3@sha256:b9fad0d59466a11f9a6c00d958b02faa3f09ff58e9319e638941518102cb3a7d
|
|
user: "1000:1000"
|
|
environment:
|
|
- BASSIN_CONFIG_TOKEN=${APP_PASSWORD}
|
|
depends_on:
|
|
init:
|
|
condition: service_completed_successfully
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/config:/config
|
|
- ${APP_DATA_DIR}/data/www:/www
|
|
restart: on-failure
|