Comment
Author: Admin | 2025-04-27
Using NGinx, read this instead (opens new window). # Again, what does btcpay-setup.sh do? btcpay-setup.sh is a utility which does the following: Makes sure docker and docker-compose are installed on your system Generates a docker-compose via ./build.sh Sets up an Environment File (opens new window) to configure your docker-compose Sets up environment variables so the tools described in Tooling can work Adds symlinks of those tools into /usr/bin Makes sure BTCPay restarts on reboot via upstart or systemd Starts BTCPay via docker-compose # Overview of files generated by btcpay-setup.sh /etc/profile.d/btcpay-env.sh ensures that your environment variables are correctly setup when you login, so you can use the tools: /etc/systemd/system/btcpayserver.service ensures that you can control btcpay via systemctl, and that BTCPayServer starts on reboot: .env ($BTCPAY_ENV_FILE) contains environment variables passed to the containers managed by your docker-compose: # How can I add an altcoin to BTCPayServer? Add support for your crypto to NBitcoin (opens new window), NBxplorer (opens new window), and BTCPayServer (opens new window). (Use examples from other coins) Create your own docker image (Example for BTC (opens new window)) Create a docker-compose fragment (Example for BTC (opens new window)) Add your CryptoDefinition (Example for BTC (opens new window)) build.sh is using a pre-built image of the docker-compose generator on docker hub (opens new window).If you modify the code source of docker-compose generator (for example, the CryptoDefinition Example for BTC (opens new window)), you need to configure build.sh to use your own image by setting the environment variable BTCPAYGEN_DOCKER_IMAGE to btcpayserver/docker-compose-generator:local. Or on powershell: Then run ./build.sh or . .\build.ps1.This will generate your docker-compose in the Generated folder, which you can then run and test. Note that BTCPayServer developers will not spend excessive time testing your image, so make sure it works. # Support Image Version x64 arm32v7 arm64v8 links btcpayserver/docker-compose-generator latest (opens new window) (opens new window) (opens new window) Github (opens new window) - DockerHub (opens new window) btcpayserver/lightning v24.08.2 (opens new window) (opens new window) (opens new window) Github (opens new window) - DockerHub (opens new window) shahanafarooqui/rtl v0.15.4 (opens new window) (opens new window) (opens new window) Github (opens new window) - DockerHub (opens new window) btcpayserver/lnd v0.18.5-beta (opens new window) (opens new window) (opens new window) Github (opens new window) - DockerHub (opens new window) btcpayserver/bitcoin 27.1 (opens new window) (opens new window) (opens new window) Github (opens new window) - DockerHub (opens new window) btcpayserver/btcpayserver 2.0.6 (opens new window) (opens new window) (opens new window) Github (opens new window) - DockerHub (opens new window) btcpayserver/monero 0.18.3.4 (opens new window) (opens new window) (opens new window) Github (opens new window) - DockerHub (opens new window) nicolasdorier/nbxplorer 2.5.16 (opens new window) (opens new window) (opens new window)
Add Comment