Fix storage volume size
This commit is contained in:
parent
882b5c6bf0
commit
042cdb5b7e
@ -32,14 +32,34 @@ fi
|
|||||||
SHASUM_OF_PRIMARY_DOMAIN="$(echo -n "$PRIMARY_DOMAIN" | sha256sum | awk '{print $1;}' )"
|
SHASUM_OF_PRIMARY_DOMAIN="$(echo -n "$PRIMARY_DOMAIN" | sha256sum | awk '{print $1;}' )"
|
||||||
export PRIMARY_DOMAIN_IDENTIFIER="${SHASUM_OF_PRIMARY_DOMAIN: -6}"
|
export PRIMARY_DOMAIN_IDENTIFIER="${SHASUM_OF_PRIMARY_DOMAIN: -6}"
|
||||||
|
|
||||||
|
|
||||||
|
# default values are already at regtest mode.
|
||||||
|
if [ "$BITCOIN_CHAIN" = testnet ]; then
|
||||||
|
|
||||||
|
WWW_SSDATA_DISK_SIZE_GB=30
|
||||||
|
WWW_BACKUP_DISK_SIZE_GB=30
|
||||||
|
WWW_DOCKER_DISK_SIZE_GB=50
|
||||||
|
|
||||||
|
BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30
|
||||||
|
BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30
|
||||||
|
BTCPAYSERVER_DOCKER_DISK_SIZE_GB=100
|
||||||
|
|
||||||
|
elif [ "$BITCOIN_CHAIN" = mainnet ]; then
|
||||||
|
|
||||||
|
WWW_SSDATA_DISK_SIZE_GB=40
|
||||||
|
WWW_BACKUP_DISK_SIZE_GB=40
|
||||||
|
WWW_DOCKER_DISK_SIZE_GB=1000
|
||||||
|
|
||||||
|
BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30
|
||||||
|
BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30
|
||||||
|
BTCPAYSERVER_DOCKER_DISK_SIZE_GB=250
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
export WWW_SSDATA_DISK_SIZE_GB="$WWW_SSDATA_DISK_SIZE_GB"
|
export WWW_SSDATA_DISK_SIZE_GB="$WWW_SSDATA_DISK_SIZE_GB"
|
||||||
export WWW_BACKUP_DISK_SIZE_GB="$WWW_BACKUP_DISK_SIZE_GB"
|
export WWW_BACKUP_DISK_SIZE_GB="$WWW_BACKUP_DISK_SIZE_GB"
|
||||||
export WWW_DOCKER_DISK_SIZE_GB="$WWW_DOCKER_DISK_SIZE_GB"
|
export WWW_DOCKER_DISK_SIZE_GB="$WWW_DOCKER_DISK_SIZE_GB"
|
||||||
|
|
||||||
export BTCPAYSERVER_SSDATA_DISK_SIZE_GB="$BTCPAYSERVER_SSDATA_DISK_SIZE_GB"
|
export BTCPAYSERVER_SSDATA_DISK_SIZE_GB="$BTCPAYSERVER_SSDATA_DISK_SIZE_GB"
|
||||||
export BTCPAYSERVER_BACKUP_DISK_SIZE_GB="$BTCPAYSERVER_BACKUP_DISK_SIZE_GB"
|
export BTCPAYSERVER_BACKUP_DISK_SIZE_GB="$BTCPAYSERVER_BACKUP_DISK_SIZE_GB"
|
||||||
export BTCPAYSERVER_DOCKER_DISK_SIZE_GB="$BTCPAYSERVER_DOCKER_DISK_SIZE_GB"
|
export BTCPAYSERVER_DOCKER_DISK_SIZE_GB="$BTCPAYSERVER_DOCKER_DISK_SIZE_GB"
|
||||||
|
|
||||||
export LNPLAY_SERVER_SSDATA_DISK_SIZE_GB="$LNPLAY_SERVER_SSDATA_DISK_SIZE_GB"
|
|
||||||
export LNPLAY_SERVER_BACKUP_DISK_SIZE_GB="$LNPLAY_SERVER_BACKUP_DISK_SIZE_GB"
|
|
||||||
export LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB="$LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB"
|
|
@ -51,42 +51,3 @@ fi
|
|||||||
|
|
||||||
source "$REMOTE_DEFINITION"
|
source "$REMOTE_DEFINITION"
|
||||||
|
|
||||||
|
|
||||||
# default values are already at regtest mode.
|
|
||||||
if [ "$BITCOIN_CHAIN" = testnet ]; then
|
|
||||||
|
|
||||||
WWW_SSDATA_DISK_SIZE_GB=30
|
|
||||||
WWW_BACKUP_DISK_SIZE_GB=30
|
|
||||||
WWW_DOCKER_DISK_SIZE_GB=50
|
|
||||||
|
|
||||||
BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30
|
|
||||||
BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30
|
|
||||||
BTCPAYSERVER_DOCKER_DISK_SIZE_GB=100
|
|
||||||
|
|
||||||
LNPLAY_SERVER_SSDATA_DISK_SIZE_GB=20
|
|
||||||
LNPLAY_SERVER_BACKUP_DISK_SIZE_GB=20
|
|
||||||
LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB=20
|
|
||||||
|
|
||||||
elif [ "$BITCOIN_CHAIN" = mainnet ]; then
|
|
||||||
|
|
||||||
WWW_SSDATA_DISK_SIZE_GB=40
|
|
||||||
WWW_BACKUP_DISK_SIZE_GB=40
|
|
||||||
WWW_DOCKER_DISK_SIZE_GB=1000
|
|
||||||
|
|
||||||
BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30
|
|
||||||
BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30
|
|
||||||
BTCPAYSERVER_DOCKER_DISK_SIZE_GB=500
|
|
||||||
|
|
||||||
LNPLAY_SERVER_SSDATA_DISK_SIZE_GB=20
|
|
||||||
LNPLAY_SERVER_BACKUP_DISK_SIZE_GB=20
|
|
||||||
LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB=400
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
export WWW_SSDATA_DISK_SIZE_GB="$WWW_SSDATA_DISK_SIZE_GB"
|
|
||||||
export WWW_BACKUP_DISK_SIZE_GB="$WWW_BACKUP_DISK_SIZE_GB"
|
|
||||||
export WWW_DOCKER_DISK_SIZE_GB="$WWW_DOCKER_DISK_SIZE_GB"
|
|
||||||
|
|
||||||
export BTCPAYSERVER_SSDATA_DISK_SIZE_GB="$BTCPAYSERVER_SSDATA_DISK_SIZE_GB"
|
|
||||||
export BTCPAYSERVER_BACKUP_DISK_SIZE_GB="$BTCPAYSERVER_BACKUP_DISK_SIZE_GB"
|
|
||||||
export BTCPAYSERVER_DOCKER_DISK_SIZE_GB="$BTCPAYSERVER_DOCKER_DISK_SIZE_GB"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user