updating to include btcpayserver fork in repo

master
lza_menace 6 days ago
parent f7ca739dc3
commit 395c9d1b68

1
.gitignore vendored

@ -1,2 +1,3 @@
data data
.env .env
btcpayserver

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "btcpayserver"]
path = btcpayserver
url = https://github.com/lalanza808/btcpayserver

@ -2,6 +2,8 @@ FROM lalanza808/wownero:v0.11.3.0
RUN apt update && apt install curl -y RUN apt update && apt install curl -y
WORKDIR /data WORKDIR /wallet
EXPOSE 34568
COPY run_wallet.sh /run_wallet.sh COPY run_wallet.sh /run_wallet.sh

@ -0,0 +1,2 @@
# BTCPayServer Wownero

@ -0,0 +1 @@
Subproject commit 7d15dd6b9e59cec306130c765e9fea11c43bb5ee

@ -2,77 +2,79 @@ services:
btcpayserver: btcpayserver:
restart: unless-stopped restart: unless-stopped
image: ${BTCPAY_IMAGE:-btcpayserver/btcpayserver:1.13.7-altcoins} build:
context: btcpayserver
container_name: btcpayserver container_name: btcpayserver
expose: expose:
- "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_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:-/}
BTCPAY_SSHCONNECTION: "root@host.docker.internal" BTCPAY_SSHCONNECTION: root@host.docker.internal
BTCPAY_SSHTRUSTEDFINGERPRINTS: ${BTCPAY_SSHTRUSTEDFINGERPRINTS} BTCPAY_SSHTRUSTEDFINGERPRINTS: ${BTCPAY_SSHTRUSTEDFINGERPRINTS}
BTCPAY_SSHKEYFILE: ${BTCPAY_SSHKEYFILE} BTCPAY_SSHKEYFILE: ${BTCPAY_SSHKEYFILE}
BTCPAY_SSHAUTHORIZEDKEYS: ${BTCPAY_SSHAUTHORIZEDKEYS} BTCPAY_SSHAUTHORIZEDKEYS: ${BTCPAY_SSHAUTHORIZEDKEYS}
BTCPAY_DEBUGLOG: btcpay.log BTCPAY_DEBUGLOG: btcpay.log
BTCPAY_UPDATEURL: 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: "xmr" BTCPAY_CHAINS: wow
BTCPAY_XMR_DAEMON_URI: http://wownerod:34568 BTCPAYGEN_CRYPTO1: xmr
BTCPAY_XMR_WALLET_DAEMON_URI: http://wownerod_wallet:8000 BTCPAY_WOW_DAEMON_URI: http://wownerod:34568
BTCPAY_XMR_WALLET_DAEMON_WALLETDIR: /root/xmr_wallet BTCPAY_WOW_WALLET_DAEMON_URI: http://wownerod_wallet:8000
BTCPAY_WOW_WALLET_DAEMON_WALLETDIR: /wallet
HIDDENSERVICE_NAME: BTCPayServer HIDDENSERVICE_NAME: BTCPayServer
HIDDENSERVICE_REVERSEPROXY: nginx HIDDENSERVICE_REVERSEPROXY: nginx
BTCPAY_TORRCFILE: /usr/local/etc/tor/torrc-2 BTCPAY_TORRCFILE: /usr/local/etc/tor/torrc-2
BTCPAY_SOCKSENDPOINT: tor:9050 BTCPAY_SOCKSENDPOINT: tor:9050
labels: labels:
traefik.enable: "false" traefik.enable: false
traefik.http.routers.btcpayserver.rule: Host(`${BTCPAY_HOST}`) traefik.http.routers.btcpayserver.rule: Host(`${BTCPAY_HOST}`)
ports: ports:
- 127.0.0.1:49392:49392 - 127.0.0.1:49392:49392
links: links:
- postgres - postgres
volumes: volumes:
- "btcpay_datadir:/datadir" - btcpay_datadir:/datadir
- "nbxplorer_datadir:/root/.nbxplorer" - nbxplorer_datadir:/root/.nbxplorer
- "btcpay_pluginsdir:/root/.btcpayserver/Plugins" - btcpay_pluginsdir:/root/.btcpayserver/Plugins
- "./data:/root/xmr_wallet" - ./data/wallet:/wallet
- "tor_servicesdir:/var/lib/tor/hidden_services" - tor_servicesdir:/var/lib/tor/hidden_services
- "tor_torrcdir:/usr/local/etc/tor/" - tor_torrcdir:/usr/local/etc/tor/
wownerod: wownerod:
restart: unless-stopped restart: unless-stopped
build: build:
context: . context: .
container_name: btcpayserver_wownerod container_name: btcpayserver_wownerod
entrypoint: wownerod --rpc-bind-ip=0.0.0.0 --confirm-external-bind --rpc-bind-port=34568 --non-interactive --block-notify="/usr/bin/curl -X GET http://btcpayserver:49392/monerolikedaemoncallback/block?cryptoCode=wow&hash=%s" --hide-my-port --enable-dns-blocklist entrypoint: wownerod --rpc-bind-ip=0.0.0.0 --confirm-external-bind --rpc-bind-port=34568 --non-interactive --block-notify="/usr/bin/curl -s -X GET http://btcpayserver:49392/wownerolikedaemoncallback/block?cryptoCode=wow&hash=%s" --hide-my-port --enable-dns-blocklist
expose: expose:
- "34568" - 34568
volumes: volumes:
- "${DATA_PATH:-./data}:/root/.wownero" - ${DATA_PATH:-./data/lmdb}:/root/.wownero
wownerod_wallet: wallet:
restart: unless-stopped restart: unless-stopped
build: build:
context: . context: .
container_name: btcpayserver_wownero_wallet container_name: btcpayserver_wallet
command: command:
bash /run_wallet.sh "${WALLET_PASS:-walletpass}" "http://wownerod:34568" bash /run_wallet.sh "${WALLET_PASS:-walletpass}" "http://wownerod:34568"
expose: expose:
- "34568" - 34568
volumes: volumes:
- "./data:/data" - ./data/wallet:/wallet
depends_on: depends_on:
- wownerod - wownerod
nbxplorer: nbxplorer:
restart: unless-stopped restart: unless-stopped
image: nicolasdorier/nbxplorer:2.5.14 image: nicolasdorier/nbxplorer:2.5.14
container_name: btcpayserver_nbxplorer container_name: btcpayserver_nbxplorer
expose: expose:
- "32838" - 32838
environment: environment:
NBXPLORER_NETWORK: ${NBITCOIN_NETWORK:-mainnet} NBXPLORER_NETWORK: ${NBITCOIN_NETWORK:-mainnet}
NBXPLORER_BIND: 0.0.0.0:32838 NBXPLORER_BIND: 0.0.0.0:32838
@ -80,9 +82,9 @@ services:
NBXPLORER_SIGNALFILESDIR: /datadir NBXPLORER_SIGNALFILESDIR: /datadir
NBXPLORER_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer${NBITCOIN_NETWORK:-mainnet} NBXPLORER_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer${NBITCOIN_NETWORK:-mainnet}
links: links:
- postgres - postgres
volumes: volumes:
- "nbxplorer_datadir:/datadir" - nbxplorer_datadir:/datadir
postgres: postgres:
restart: unless-stopped restart: unless-stopped
@ -93,7 +95,7 @@ services:
environment: environment:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
volumes: volumes:
- "postgres_datadir:/var/lib/postgresql/data" - postgres_datadir:/var/lib/postgresql/data
tor: tor:
restart: unless-stopped restart: unless-stopped
@ -105,29 +107,28 @@ services:
TOR_EXTRA_ARGS: | TOR_EXTRA_ARGS: |
CookieAuthentication 1 CookieAuthentication 1
expose: expose:
- "9050" - 9050
- "9051" - 9051
volumes: volumes:
- "tor_datadir:/home/tor/.tor" - tor_datadir:/home/tor/.tor
- "tor_torrcdir:/usr/local/etc/tor" - tor_torrcdir:/usr/local/etc/tor
- "tor_servicesdir:/var/lib/tor/hidden_services" - tor_servicesdir:/var/lib/tor/hidden_services
tor-gen: tor-gen:
restart: unless-stopped restart: unless-stopped
image: btcpayserver/docker-gen:0.10.7 image: btcpayserver/docker-gen:0.10.7
container_name: btcpayserver_tor-gen container_name: btcpayserver_tor-gen
volumes: volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro" - /var/run/docker.sock:/tmp/docker.sock:ro
- "./torrc.tmpl:/etc/docker-gen/templates/torrc.tmpl:ro" - ./torrc.tmpl:/etc/docker-gen/templates/torrc.tmpl:ro
- "tor_torrcdir:/usr/local/etc/tor" - tor_torrcdir:/usr/local/etc/tor
entrypoint: /usr/local/bin/docker-gen -notify-sighup tor -watch -wait 5s:30s /etc/docker-gen/templates/torrc.tmpl /usr/local/etc/tor/torrc-2 entrypoint: /usr/local/bin/docker-gen -notify-sighup tor -watch -wait 5s:30s /etc/docker-gen/templates/torrc.tmpl /usr/local/etc/tor/torrc-2
links: links:
- tor - tor
volumes: volumes:
btcpay_datadir: btcpay_datadir:
btcpay_pluginsdir: btcpay_pluginsdir:
xmr_wallet:
xmr_data: xmr_data:
nbxplorer_datadir: nbxplorer_datadir:
postgres_datadir: postgres_datadir:

@ -1,20 +1,16 @@
#!/bin/bash #!/bin/bash
export WALLET_CREDS="${1}" export WALLET_CREDS="${1}"
export DAEMON_URI="${2}" export DAEMON_URI="${2}"
export WALLET_FILE="/data/wallet" export WALLET_FILE="/wallet/wallet"
export PASSWORD_FILE="/data/password" export PASSWORD_FILE="/wallet/password"
sleep 2
env
set -x
# 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}
wownero-wallet-cli \ wownero-wallet-cli \
--password "${WALLET_CREDS}" \
--generate-new-wallet ${WALLET_FILE} \ --generate-new-wallet ${WALLET_FILE} \
--daemon-address ${DAEMON_URI} \ --daemon-address ${DAEMON_URI} \
--password-file ${PASSWORD_FILE} \ --password-file ${PASSWORD_FILE} \
@ -31,10 +27,9 @@ wownero-wallet-rpc \
--password-file ${PASSWORD_FILE} \ --password-file ${PASSWORD_FILE} \
--rpc-bind-port 8000 \ --rpc-bind-port 8000 \
--rpc-bind-ip 0.0.0.0 \ --rpc-bind-ip 0.0.0.0 \
--disable-rpc-login \
--confirm-external-bind \ --confirm-external-bind \
--log-file ${WALLET_FILE}.rpc.log \ --log-file ${WALLET_FILE}.rpc.log \
--log-level 0 \ --log-level 0 \
--non-interactive \ --non-interactive \
--trusted-daemon \ --trusted-daemon \
--tx-notify="/usr/bin/curl -X GET http://btcpayserver:49392/monerolikedaemoncallback/tx?cryptoCode=xmr&hash=%s" --tx-notify="/usr/bin/curl -s -X GET http://btcpayserver:49392/wownerolikedaemoncallback/tx?cryptoCode=wow&hash=%s"

Loading…
Cancel
Save