remove nxplore and fix wallet args

master
lza_menace 6 days ago
parent 395c9d1b68
commit 86dbe914a1

@ -9,7 +9,6 @@ services:
- 49392 - 49392
environment: environment:
BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Application Name=btcpayserver;Database=btcpayserver${NBITCOIN_NETWORK:-mainnet} BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Application Name=btcpayserver;Database=btcpayserver${NBITCOIN_NETWORK:-mainnet}
BTCPAY_EXPLORERPOSTGRES: User ID=postgres;Host=postgres;Port=5432;Application Name=btcpayserver;MaxPoolSize=80;Database=nbxplorer${NBITCOIN_NETWORK:-mainnet}
BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-mainnet} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-mainnet}
BTCPAY_BIND: 0.0.0.0:49392 BTCPAY_BIND: 0.0.0.0:49392
BTCPAY_ROOTPATH: ${BTCPAY_ROOTPATH:-/} BTCPAY_ROOTPATH: ${BTCPAY_ROOTPATH:-/}
@ -21,9 +20,8 @@ services:
BTCPAY_UPDATEURLz: https://api.github.com/repos/btcpayserver/btcpayserver/releases/latest BTCPAY_UPDATEURLz: https://api.github.com/repos/btcpayserver/btcpayserver/releases/latest
BTCPAY_DOCKERDEPLOYMENT: true BTCPAY_DOCKERDEPLOYMENT: true
BTCPAY_CHAINS: wow BTCPAY_CHAINS: wow
BTCPAYGEN_CRYPTO1: xmr
BTCPAY_WOW_DAEMON_URI: http://wownerod:34568 BTCPAY_WOW_DAEMON_URI: http://wownerod:34568
BTCPAY_WOW_WALLET_DAEMON_URI: http://wownerod_wallet:8000 BTCPAY_WOW_WALLET_DAEMON_URI: http://wallet:8000
BTCPAY_WOW_WALLET_DAEMON_WALLETDIR: /wallet BTCPAY_WOW_WALLET_DAEMON_WALLETDIR: /wallet
HIDDENSERVICE_NAME: BTCPayServer HIDDENSERVICE_NAME: BTCPayServer
HIDDENSERVICE_REVERSEPROXY: nginx HIDDENSERVICE_REVERSEPROXY: nginx
@ -38,7 +36,6 @@ services:
- postgres - postgres
volumes: volumes:
- btcpay_datadir:/datadir - btcpay_datadir:/datadir
- nbxplorer_datadir:/root/.nbxplorer
- btcpay_pluginsdir:/root/.btcpayserver/Plugins - btcpay_pluginsdir:/root/.btcpayserver/Plugins
- ./data/wallet:/wallet - ./data/wallet:/wallet
- tor_servicesdir:/var/lib/tor/hidden_services - tor_servicesdir:/var/lib/tor/hidden_services
@ -53,38 +50,21 @@ services:
expose: expose:
- 34568 - 34568
volumes: volumes:
- ${DATA_PATH:-./data/lmdb}:/root/.wownero - ${DATA_PATH:-./data/blockchain}:/root/.wownero
wallet: wallet:
restart: unless-stopped restart: unless-stopped
build: build:
context: . context: .
container_name: btcpayserver_wallet container_name: btcpayserver_wallet
command:
bash /run_wallet.sh "${WALLET_PASS:-walletpass}" "http://wownerod:34568"
expose: expose:
- 34568 - 8000
volumes: volumes:
- ./data/wallet:/wallet - ./data/wallet:/wallet
depends_on: depends_on:
- wownerod - wownerod
command:
nbxplorer: bash /run_wallet.sh "http://wownerod:34568" "${WALLET_PASS:-walletpass}"
restart: unless-stopped
image: nicolasdorier/nbxplorer:2.5.14
container_name: btcpayserver_nbxplorer
expose:
- 32838
environment:
NBXPLORER_NETWORK: ${NBITCOIN_NETWORK:-mainnet}
NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_TRIMEVENTS: 10000
NBXPLORER_SIGNALFILESDIR: /datadir
NBXPLORER_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer${NBITCOIN_NETWORK:-mainnet}
links:
- postgres
volumes:
- nbxplorer_datadir:/datadir
postgres: postgres:
restart: unless-stopped restart: unless-stopped
@ -129,8 +109,6 @@ services:
volumes: volumes:
btcpay_datadir: btcpay_datadir:
btcpay_pluginsdir: btcpay_pluginsdir:
xmr_data:
nbxplorer_datadir:
postgres_datadir: postgres_datadir:
tor_datadir: tor_datadir:
tor_torrcdir: tor_torrcdir:

@ -1,12 +1,11 @@
#!/bin/bash #!/bin/bash
export WALLET_CREDS="${1}" export DAEMON_URI="${1}"
export DAEMON_URI="${2}" export WALLET_CREDS="${2}"
export WALLET_FILE="/wallet/wallet" export WALLET_FILE="/wallet/wallet"
export PASSWORD_FILE="/wallet/password" export PASSWORD_FILE="/wallet/password"
# Create new wallet if it doesn't exist # Create new wallet if it doesn't exist
if [[ ! -f ${WALLET_FILE} ]]; then if [[ ! -f ${WALLET_FILE} ]]; then
echo $WALLET_CREDS > ${PASSWORD_FILE} echo $WALLET_CREDS > ${PASSWORD_FILE}
@ -25,6 +24,7 @@ wownero-wallet-rpc \
--daemon-address ${DAEMON_URI} \ --daemon-address ${DAEMON_URI} \
--wallet-file ${WALLET_FILE} \ --wallet-file ${WALLET_FILE} \
--password-file ${PASSWORD_FILE} \ --password-file ${PASSWORD_FILE} \
--disable-rpc-login \
--rpc-bind-port 8000 \ --rpc-bind-port 8000 \
--rpc-bind-ip 0.0.0.0 \ --rpc-bind-ip 0.0.0.0 \
--confirm-external-bind \ --confirm-external-bind \

Loading…
Cancel
Save