mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-18 23:44:36 +01:00
Use bitcoin pruning, disable NBXplorer pruning
This commit is contained in:
@@ -302,14 +302,10 @@ Then modify the file to your taste
|
|||||||
```diff
|
```diff
|
||||||
@@ -14,8 +14,7 @@ version: "3"
|
@@ -14,8 +14,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
nbxplorer:
|
|
||||||
environment:
|
|
||||||
- NBXPLORER_BTCPRUNEBEFOREHEIGHT: ${NBXPLORER_PRUNEBEFOREHEIGHT:-504500}
|
|
||||||
- NBXPLORER_PRUNEKEEPONLY: ${NBXPLORER_PRUNEKEEPONLY:-50000}
|
|
||||||
+ NBXPLORER_PRUNEKEEPONLY: ${NBXPLORER_PRUNEKEEPONLY:-2500}
|
|
||||||
|
|
||||||
bitcoind:
|
bitcoind:
|
||||||
environment:
|
environment:
|
||||||
|
- BITCOIN_EXTRA_ARGS: prune=100000
|
||||||
|
+ BITCOIN_EXTRA_ARGS: prune=5000
|
||||||
```
|
```
|
||||||
|
|
||||||
Then set it up:
|
Then set it up:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ services:
|
|||||||
|
|
||||||
nbxplorer:
|
nbxplorer:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: nicolasdorier/nbxplorer:1.0.2.28
|
image: nicolasdorier/nbxplorer:1.0.2.30
|
||||||
expose:
|
expose:
|
||||||
- "32838"
|
- "32838"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -1,22 +1,6 @@
|
|||||||
# This will help activate pruning on your nodes to save storage cost:
|
|
||||||
|
|
||||||
# BTCPRUNEBEFOREHEIGHT is chosen to be 504500, the date when lightning was starting to be used
|
|
||||||
# NBXPLORER_PRUNEKEEPONLY is aiming for 100 GB of storage
|
|
||||||
# Calculation input: 2 MB per Block (mbPerBlock), 1 Block every 10 Min (blockPerMin), Target size 100 GB (targetSizeGB)
|
|
||||||
# Formula:
|
|
||||||
# blocksPerDay = 24*60/blockPerMin = 144
|
|
||||||
# gbPerDay = blocksPerDay * mbPerBlock = 288
|
|
||||||
# daysToKeep = targetSizeGB / gbPerDay = 347.2
|
|
||||||
# blocksToKeep = daysToKeep * blocksPerDay = 50000
|
|
||||||
|
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nbxplorer:
|
|
||||||
environment:
|
|
||||||
NBXPLORER_BTCPRUNEBEFOREHEIGHT: ${NBXPLORER_PRUNEBEFOREHEIGHT:-504500}
|
|
||||||
NBXPLORER_PRUNEKEEPONLY: ${NBXPLORER_PRUNEKEEPONLY:-50000}
|
|
||||||
|
|
||||||
bitcoind:
|
bitcoind:
|
||||||
environment:
|
environment:
|
||||||
BITCOIN_EXTRA_ARGS: prune=1
|
BITCOIN_EXTRA_ARGS: prune=100000
|
||||||
@@ -26,7 +26,7 @@ namespace DockerGenerator
|
|||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
}
|
} = new string[0];
|
||||||
|
|
||||||
public static DockerComposition FromEnvironmentVariables()
|
public static DockerComposition FromEnvironmentVariables()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user