mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-18 00:54:24 +01:00
Allows you to exclude any fragments that get added. Good use case: do not deploy litecoin lightning node when using btc lightning Should also help users with advanced customization scenarios
39 lines
1.7 KiB
Bash
Executable File
39 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
: "${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
|
|
docker pull $BTCPAYGEN_DOCKER_IMAGE
|
|
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" \
|
|
-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" \
|
|
--rm $BTCPAYGEN_DOCKER_IMAGE
|
|
|
|
if [ "$BTCPAYGEN_REVERSEPROXY" == "nginx" ]; then
|
|
cp Production/nginx.tmpl Generated/nginx.tmpl
|
|
fi
|
|
|
|
if [ "$BTCPAYGEN_REVERSEPROXY" == "traefik" ]; then
|
|
cp Traefik/traefik.toml Generated/traefik.toml
|
|
:> Generated/acme.json
|
|
chmod 600 Generated/acme.json
|
|
fi
|