mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2024-11-11 16:09:18 +00:00
693497909f
Co-authored-by: nmfretz <nmfretz@gmail.com>
69 lines
3.0 KiB
YAML
69 lines
3.0 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: btcpay-server_web_1
|
|
APP_PORT: 3003
|
|
PROXY_AUTH_ADD: "false"
|
|
|
|
nbxplorer:
|
|
image: nicolasdorier/nbxplorer:2.5.6@sha256:bad72cf489ff590d678c82a273ee6ec23c54f46b8aec076fef7b6c3544f98e37
|
|
user: "1000:1000"
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
depends_on: [postgres]
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/nbxplorer:/data
|
|
environment:
|
|
NBXPLORER_DATADIR: "/data"
|
|
NBXPLORER_NETWORK: "$APP_BITCOIN_NETWORK"
|
|
NBXPLORER_BIND: 0.0.0.0:32838
|
|
NBXPLORER_CHAINS: "btc"
|
|
NBXPLORER_SIGNALFILEDIR: "/data"
|
|
NBXPLORER_BTCRPCURL: "http://$APP_BITCOIN_NODE_IP:$APP_BITCOIN_RPC_PORT"
|
|
NBXPLORER_BTCNODEENDPOINT: $APP_BITCOIN_NODE_IP:$APP_BITCOIN_P2P_PORT
|
|
NBXPLORER_BTCRPCUSER: $APP_BITCOIN_RPC_USER
|
|
NBXPLORER_BTCRPCPASSWORD: $APP_BITCOIN_RPC_PASS
|
|
NBXPLORER_POSTGRES: User ID=postgres;Host=btcpay-server_postgres_1;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer$APP_BITCOIN_NETWORK
|
|
NBXPLORER_BTCHASTXINDEX: 1
|
|
|
|
web:
|
|
image: btcpayserver/btcpayserver:2.0.1@sha256:5dfbb53825bc76b333b120ff1c4b83821291993e94b8b0ea6d0cfc69e112a06f
|
|
user: "1000:1000"
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
depends_on: [nbxplorer, postgres]
|
|
entrypoint: ["dotnet", "BTCPayServer.dll"]
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/btcpay:/data
|
|
- ${APP_DATA_DIR}/data/nbxplorer:/data/.nbxplorer
|
|
- ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
|
|
environment:
|
|
HOME: "/data"
|
|
BTCPAY_DATADIR: "/data"
|
|
BTCPAY_PLUGINDIR: "/data/plugins"
|
|
BTCPAY_DOCKERDEPLOYMENT: "false"
|
|
BTCPAY_POSTGRES: "User ID=postgres;Host=btcpay-server_postgres_1;Port=5432;Database=btcpayserver$APP_BITCOIN_NETWORK"
|
|
BTCPAY_NETWORK: "$APP_BITCOIN_NETWORK"
|
|
BTCPAY_BIND: 0.0.0.0:3003
|
|
BTCPAY_CHAINS: "btc"
|
|
BTCPAY_BTCEXPLORERURL: "http://btcpay-server_nbxplorer_1:32838"
|
|
BTCPAY_BTCLIGHTNING: "type=lnd-rest;server=https://$APP_LIGHTNING_NODE_IP:$APP_LIGHTNING_NODE_REST_PORT/;macaroonfilepath=/lnd/data/chain/bitcoin/$APP_BITCOIN_NETWORK/admin.macaroon;allowinsecure=true"
|
|
BTCPAY_SOCKSENDPOINT: $TOR_PROXY_IP:$TOR_PROXY_PORT
|
|
BTCPAY_EXPLORERPOSTGRES: User ID=postgres;Host=btcpay-server_postgres_1;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer$APP_BITCOIN_NETWORK
|
|
BTCPAY_TORSERVICES: "btcpayserver:$APP_HIDDEN_SERVICE"
|
|
|
|
postgres:
|
|
image: btcpayserver/postgres:13.13@sha256:20d090860c929d4e86dc1068ad542cbae3e7ab3bcbc5c0c8a8b57ec91a5cbe3c
|
|
# This needs to run as root for migrations to succeed
|
|
# user: "1000:1000"
|
|
restart: on-failure
|
|
# https://github.com/btcpayserver/btcpayserver-docker/commit/a65e7db6851092c75c5ac6c091a5f36ccc5fc26e
|
|
command: ["-c", "random_page_cost=1.0", "-c", "shared_preload_libraries=pg_stat_statements"]
|
|
stop_grace_period: 1m
|
|
environment:
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|