2022-04-20 20:32:07 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
2022-05-16 13:30:51 +00:00
|
|
|
app_proxy:
|
|
|
|
environment:
|
2022-12-04 20:18:22 +00:00
|
|
|
APP_HOST: btcpay-server_web_1
|
|
|
|
APP_PORT: 3003
|
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:
|
2023-08-03 19:40:45 +00:00
|
|
|
image: nicolasdorier/nbxplorer:2.3.65@sha256:5c8e80098635a99b48562f32a0436e35e0ff72eb5c8cf3347c982b691901dfc8
|
2022-04-20 20:32:07 +00:00
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
2022-08-10 16:54:47 +00:00
|
|
|
depends_on: [postgres]
|
2022-04-20 20:32:07 +00:00
|
|
|
volumes:
|
2022-08-10 16:54:47 +00:00
|
|
|
- ${APP_DATA_DIR}/data/nbxplorer:/data
|
2022-04-20 20:32:07 +00:00
|
|
|
environment:
|
2022-08-10 16:54:47 +00:00
|
|
|
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
|
2022-12-04 20:18:22 +00:00
|
|
|
NBXPLORER_POSTGRES: User ID=postgres;Host=btcpay-server_postgres_1;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer$APP_BITCOIN_NETWORK
|
2022-08-10 16:54:47 +00:00
|
|
|
NBXPLORER_AUTOMIGRATE: 1
|
|
|
|
NBXPLORER_NOMIGRATEEVTS: 1
|
2023-02-23 23:19:47 +00:00
|
|
|
NBXPLORER_BTCHASTXINDEX: 1
|
2022-04-20 20:32:07 +00:00
|
|
|
|
|
|
|
web:
|
2023-08-03 19:40:45 +00:00
|
|
|
image: btcpayserver/btcpayserver:1.11.1@sha256:44742c74deccb4a42dddf25ff5fce67c3e905eb7f88b047e8f8a80c261bc134f
|
2022-04-20 20:32:07 +00:00
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
2022-08-10 16:54:47 +00:00
|
|
|
depends_on: [nbxplorer, postgres]
|
|
|
|
entrypoint: ["dotnet", "BTCPayServer.dll"]
|
2022-04-20 20:32:07 +00:00
|
|
|
volumes:
|
2022-08-10 16:54:47 +00:00
|
|
|
- ${APP_DATA_DIR}/data/btcpay:/data
|
|
|
|
- ${APP_DATA_DIR}/data/nbxplorer:/data/.nbxplorer
|
|
|
|
- ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
|
2022-04-20 20:32:07 +00:00
|
|
|
environment:
|
2022-08-10 16:54:47 +00:00
|
|
|
HOME: "/data"
|
|
|
|
BTCPAY_DATADIR: "/data"
|
|
|
|
BTCPAY_PLUGINDIR: "/data/plugins"
|
|
|
|
BTCPAY_DOCKERDEPLOYMENT: "false"
|
2022-12-04 20:18:22 +00:00
|
|
|
BTCPAY_POSTGRES: "User ID=postgres;Host=btcpay-server_postgres_1;Port=5432;Database=btcpayserver$APP_BITCOIN_NETWORK"
|
2022-08-10 16:54:47 +00:00
|
|
|
BTCPAY_NETWORK: "$APP_BITCOIN_NETWORK"
|
2022-12-04 20:18:22 +00:00
|
|
|
BTCPAY_BIND: 0.0.0.0:3003
|
2022-08-10 16:54:47 +00:00
|
|
|
BTCPAY_CHAINS: "btc"
|
2022-12-04 20:18:22 +00:00
|
|
|
BTCPAY_BTCEXPLORERURL: "http://btcpay-server_nbxplorer_1:32838"
|
2022-08-10 16:54:47 +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"
|
|
|
|
BTCPAY_SOCKSENDPOINT: $TOR_PROXY_IP:$TOR_PROXY_PORT
|
2022-12-04 20:18:22 +00:00
|
|
|
BTCPAY_EXPLORERPOSTGRES: User ID=postgres;Host=btcpay-server_postgres_1;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer$APP_BITCOIN_NETWORK
|
2023-02-23 23:19:47 +00:00
|
|
|
BTCPAY_TORSERVICES: "btcpayserver:$APP_HIDDEN_SERVICE"
|
2022-04-20 20:32:07 +00:00
|
|
|
|
|
|
|
postgres:
|
2023-08-03 19:40:45 +00:00
|
|
|
image: btcpayserver/postgres:13.10@sha256:12b8f625bc64b5b129e0e7a672e5e31fb5d39a7dbe42233eef7ab321568f30e7
|
2022-04-20 20:32:07 +00:00
|
|
|
# This needs to run as root for migrations to succeed
|
|
|
|
# user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
# https://github.com/btcpayserver/btcpayserver-docker/commit/a65e7db6851092c75c5ac6c091a5f36ccc5fc26e
|
2022-08-10 16:54:47 +00:00
|
|
|
command: ["-c", "random_page_cost=1.0", "-c", "shared_preload_libraries=pg_stat_statements"]
|
2022-04-20 20:32:07 +00:00
|
|
|
stop_grace_period: 1m
|
|
|
|
environment:
|
2022-08-10 16:54:47 +00:00
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2022-04-20 20:32:07 +00:00
|
|
|
volumes:
|
2022-08-10 16:54:47 +00:00
|
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|