Browse Source

add opt-save-memory

feature/auto_ssh
nicolas.dorier 6 years ago
parent
commit
c4fe4b1c9d
  1. 1
      README.md
  2. 23
      docker-compose-generator/docker-fragments/opt-save-memory.yml

1
README.md

@ -155,6 +155,7 @@ Available `BTCPAYGEN_ADDITIONAL_FRAGMENTS` currently are:
* [opt-save-storage-xs](docker-compose-generator/docker-fragments/opt-save-storage-xs.yml) will keep around 3 months of blocks (prune BTC for 25 GB) * [opt-save-storage-xs](docker-compose-generator/docker-fragments/opt-save-storage-xs.yml) will keep around 3 months of blocks (prune BTC for 25 GB)
* [opt-save-storage-xxs](docker-compose-generator/docker-fragments/opt-save-storage-xxs.yml) will keep around 2 weeks of blocks (prune BTC for 5 GB) (lightning not supported) * [opt-save-storage-xxs](docker-compose-generator/docker-fragments/opt-save-storage-xxs.yml) will keep around 2 weeks of blocks (prune BTC for 5 GB) (lightning not supported)
* [opt-lnd-autopilot](docker-compose-generator/docker-fragments/opt-lnd-autopilot.yml) will activate auto pilot on LND. (5 channels, 60% of allocation) * [opt-lnd-autopilot](docker-compose-generator/docker-fragments/opt-lnd-autopilot.yml) will activate auto pilot on LND. (5 channels, 60% of allocation)
* [opt-save-memory](docker-compose-generator/docker-fragments/opt-save-memory.yml) will decrease the default dbcache at the expense of longer synchronization time (Useful if your machine is less than 2GB)
You can also create your own [custom fragments](#how-can-i-customize-the-generated-docker-compose-file). You can also create your own [custom fragments](#how-can-i-customize-the-generated-docker-compose-file).

23
docker-compose-generator/docker-fragments/opt-save-memory.yml

@ -0,0 +1,23 @@
version: "3"
# If you don't use Lightning Network, you want this
# This save about 2 weeks worth of block
services:
bitcoind:
environment:
BITCOIN_EXTRA_ARGS: dbcache=300
bgoldd:
environment:
BITCOIN_EXTRA_ARGS: dbcache=300
feathercoind:
environment:
BITCOIN_EXTRA_ARGS: dbcache=300
groestlcoind:
environment:
BITCOIN_EXTRA_ARGS: dbcache=300
litecoind:
environment:
BITCOIN_EXTRA_ARGS: dbcache=300
viacoind:
environment:
BITCOIN_EXTRA_ARGS: dbcache=300
Loading…
Cancel
Save