mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00

* Integrate EPS (Electrum Personal Server) After the ElectrumX integration in the last release, I thought that some people may prefer the Electrum Personal Server (EPS) approach, which can only serve specific pre-determined wallets (using XPUBS). EPS cannot serve as a server for ad-hoc wallets with connections for many people, that ElectrumX delivers. The upside pf EPS is that it is much lighter, and doesn't require txindex=1. I will integrate it with this pull request, but it might take a while, as I have some busy weeks ahead of me. * Update opt-add-electrum-ps.yml * Update opt-add-electrum-ps.yml * Update opt-add-electrum-ps.yml * Update opt-add-electrum-ps.yml * fix persistent data directory * Break up monolithic bitcoind var * fix bitcoind daemon name * Update opt-add-electrum-ps.yml * Update opt-add-electrum-ps.yml * Update opt-add-electrum-ps.yml * Fixed image name * fixed bitcoind rpc login credentials * Update opt-add-electrum-ps.yml * Add $BTCPAY_EPS_XPUB Add $BTCPAY_EPS_XPUB for Electrum Personal Server Integration * Update opt-add-electrum-ps.yml * Update opt-add-electrum-ps.yml * Update README.md * Update README.md * Update build.sh * Update opt-add-electrum-ps.yml * Update README.md Co-authored-by: peleion <github@peleion.com>
50 lines
2.2 KiB
Bash
Executable File
50 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
: "${BTCPAYGEN_DOCKER_IMAGE:=btcpayserver/docker-compose-generator}"
|
|
if [ "$BTCPAYGEN_DOCKER_IMAGE" == "btcpayserver/docker-compose-generator:local" ]
|
|
then
|
|
docker build docker-compose-generator -f docker-compose-generator/linuxamd64.Dockerfile --tag $BTCPAYGEN_DOCKER_IMAGE
|
|
else
|
|
set +e
|
|
docker pull $BTCPAYGEN_DOCKER_IMAGE
|
|
docker rmi $(docker images btcpayserver/docker-compose-generator --format "{{.Tag}};{{.ID}}" | grep "^<none>" | cut -f2 -d ';') > /dev/null 2>&1
|
|
set -e
|
|
fi
|
|
|
|
# This script will run docker-compose-generator in a container to generate the yml files
|
|
docker run -v "$(pwd)/Generated:/app/Generated" \
|
|
-v "$(pwd)/docker-compose-generator/docker-fragments:/app/docker-fragments" \
|
|
-v "$(pwd)/docker-compose-generator/crypto-definitions.json:/app/crypto-definitions.json" \
|
|
-e "BTCPAYGEN_CRYPTO1=$BTCPAYGEN_CRYPTO1" \
|
|
-e "BTCPAYGEN_CRYPTO2=$BTCPAYGEN_CRYPTO2" \
|
|
-e "BTCPAYGEN_CRYPTO3=$BTCPAYGEN_CRYPTO3" \
|
|
-e "BTCPAYGEN_CRYPTO4=$BTCPAYGEN_CRYPTO4" \
|
|
-e "BTCPAYGEN_CRYPTO5=$BTCPAYGEN_CRYPTO5" \
|
|
-e "BTCPAYGEN_CRYPTO6=$BTCPAYGEN_CRYPTO6" \
|
|
-e "BTCPAYGEN_CRYPTO7=$BTCPAYGEN_CRYPTO7" \
|
|
-e "BTCPAYGEN_CRYPTO8=$BTCPAYGEN_CRYPTO8" \
|
|
-e "BTCPAYGEN_CRYPTO9=$BTCPAYGEN_CRYPTO9" \
|
|
-e "BTCPAYGEN_REVERSEPROXY=$BTCPAYGEN_REVERSEPROXY" \
|
|
-e "BTCPAYGEN_ADDITIONAL_FRAGMENTS=$BTCPAYGEN_ADDITIONAL_FRAGMENTS" \
|
|
-e "BTCPAYGEN_EXCLUDE_FRAGMENTS=$BTCPAYGEN_EXCLUDE_FRAGMENTS" \
|
|
-e "BTCPAYGEN_LIGHTNING=$BTCPAYGEN_LIGHTNING" \
|
|
-e "BTCPAYGEN_SUBNAME=$BTCPAYGEN_SUBNAME" \
|
|
-e "BTCPAY_HOST_SSHAUTHORIZEDKEYS=$BTCPAY_HOST_SSHAUTHORIZEDKEYS" \
|
|
-e "EPS_XPUB=$EPS_XPUB" \
|
|
--rm $BTCPAYGEN_DOCKER_IMAGE
|
|
|
|
if [ "$BTCPAYGEN_REVERSEPROXY" == "nginx" ]; then
|
|
cp Production/nginx.tmpl Generated/nginx.tmpl
|
|
fi
|
|
|
|
[[ -f "Generated/pull-images.sh" ]] && chmod +x Generated/pull-images.sh
|
|
[[ -f "Generated/save-images.sh" ]] && chmod +x Generated/save-images.sh
|
|
|
|
if [ "$BTCPAYGEN_REVERSEPROXY" == "traefik" ]; then
|
|
cp Traefik/traefik.toml Generated/traefik.toml
|
|
:> Generated/acme.json
|
|
chmod 600 Generated/acme.json
|
|
fi
|