1
0
Files
btcpayserver-docker/docker-compose-generator/docker-fragments/monero.yml
CRYPTO GRAMPY™ c9cb35a507 Add Monero to opt-save-storage to run pruned node, default Monerod to full node (#558)
* Default Monerod to full node, add MONEROD_EXTRA_ARGS environment config and add Monerod pruned blockchain to opt-save-storage

* Update opt-save-storage.yml
2022-01-28 15:16:37 +09:00

44 lines
1.5 KiB
YAML

version: "3"
services:
monerod:
restart: unless-stopped
container_name: btcpayserver_monerod
image: btcpayserver/monero:0.17.2.3
entrypoint: monerod
environment:
MONERO_EXTRA_ARGS: |
rpc-bind-ip=0.0.0.0
confirm-external-bind=1
rpc-bind-port=18081
non-interactive=1
block-notify="/bin/sh ./scripts/notifier.sh -X GET http://btcpayserver:49392/monerolikedaemoncallback/block?cryptoCode=xmr&hash=%s"
hide-my-port=1
enable-dns-blocklist=1
expose:
- "18081"
volumes:
- "xmr_data:/home/monero/.bitmonero"
monerod_wallet:
restart: unless-stopped
container_name: btcpayserver_monero_wallet
image: btcpayserver/monero:0.17.2.3
entrypoint: monero-wallet-rpc --rpc-bind-ip=0.0.0.0 --disable-rpc-login --confirm-external-bind --rpc-bind-port=18082 --non-interactive --trusted-daemon --daemon-address=monerod:18081 --wallet-file=/wallet/wallet --password-file=/wallet/password --tx-notify="/bin/sh ./scripts/notifier.sh -X GET http://btcpayserver:49392/monerolikedaemoncallback/tx?cryptoCode=xmr&hash=%s"
expose:
- "18082"
volumes:
- "xmr_wallet:/wallet"
depends_on:
- monerod
btcpayserver:
environment:
BTCPAY_CHAINS: "xmr"
BTCPAY_XMR_DAEMON_URI: http://monerod:18081
BTCPAY_XMR_WALLET_DAEMON_URI: http://monerod_wallet:18082
BTCPAY_XMR_WALLET_DAEMON_WALLETDIR: /root/xmr_wallet
volumes:
- "xmr_wallet:/root/xmr_wallet"
volumes:
xmr_wallet:
xmr_data: