2022-04-20 20:32:07 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
2022-05-16 13:30:51 +00:00
|
|
|
app_proxy:
|
|
|
|
environment:
|
|
|
|
APP_HOST: $APP_BTCPAY_SERVER_IP
|
|
|
|
APP_PORT: $APP_BTCPAY_SERVER_PORT
|
2022-06-07 07:04:33 +00:00
|
|
|
PROXY_AUTH_ADD: "false"
|
2022-05-16 13:30:51 +00:00
|
|
|
|
2022-04-20 20:32:07 +00:00
|
|
|
nbxplorer:
|
|
|
|
image: nicolasdorier/nbxplorer:2.2.20@sha256:8f0e7f68513596e0a2555990d262169088a70204abe397bf18ba921f9b0608f3
|
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/nbxplorer:/data
|
|
|
|
environment:
|
|
|
|
NBXPLORER_DATADIR: "/data"
|
2022-05-27 10:14:11 +00:00
|
|
|
NBXPLORER_NETWORK: "$APP_BITCOIN_NETWORK"
|
2022-04-20 20:32:07 +00:00
|
|
|
NBXPLORER_PORT: 32838
|
|
|
|
NBXPLORER_BIND: 0.0.0.0
|
|
|
|
NBXPLORER_CHAINS: "btc"
|
|
|
|
NBXPLORER_SIGNALFILEDIR: "/data"
|
2022-05-27 10:14:11 +00:00
|
|
|
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
|
2022-04-20 20:32:07 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $APP_BTCPAY_SERVER_NBXPLORER_IP
|
|
|
|
|
|
|
|
web:
|
2022-06-11 14:20:50 +00:00
|
|
|
image: btcpayserver/btcpayserver:1.5.4@sha256:2c1338e14cda481a738f900f1684167d435618db3890bcfed6e51cd7e8d7674c
|
2022-04-20 20:32:07 +00:00
|
|
|
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
|
2022-05-27 10:14:11 +00:00
|
|
|
- ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
|
2022-04-20 20:32:07 +00:00
|
|
|
environment:
|
|
|
|
HOME: "/data"
|
|
|
|
BTCPAY_DATADIR: "/data"
|
|
|
|
BTCPAY_PLUGINDIR: "/data/plugins"
|
|
|
|
BTCPAY_DOCKERDEPLOYMENT: "false"
|
2022-05-27 10:14:11 +00:00
|
|
|
BTCPAY_POSTGRES: "User ID=postgres;Host=$APP_BTCPAY_SERVER_DB_IP;Port=5432;Database=btcpayserver$APP_BITCOIN_NETWORK"
|
|
|
|
BTCPAY_NETWORK: "$APP_BITCOIN_NETWORK"
|
2022-04-20 20:32:07 +00:00
|
|
|
BTCPAY_BIND: 0.0.0.0:$APP_BTCPAY_SERVER_PORT
|
|
|
|
BTCPAY_CHAINS: "btc"
|
|
|
|
BTCPAY_BTCEXPLORERURL: "http://$APP_BTCPAY_SERVER_NBXPLORER_IP:32838"
|
2022-05-27 10:14:11 +00:00
|
|
|
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"
|
2022-04-20 20:32:07 +00:00
|
|
|
BTCPAY_SOCKSENDPOINT: $TOR_PROXY_IP:$TOR_PROXY_PORT
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $APP_BTCPAY_SERVER_IP
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: btcpayserver/postgres:13.6@sha256:dadf0048895a888d88a2dd773dde2f5868c45f74ad37c6d208694df54b590531
|
|
|
|
# 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" ]
|
|
|
|
stop_grace_period: 1m
|
|
|
|
environment:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $APP_BTCPAY_SERVER_DB_IP
|