From c4fe4b1c9d9afe8730fc42805104b3225d173c9a Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 27 Nov 2018 21:32:03 +0900 Subject: [PATCH] add opt-save-memory --- README.md | 1 + .../docker-fragments/opt-save-memory.yml | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docker-compose-generator/docker-fragments/opt-save-memory.yml diff --git a/README.md b/README.md index 881f1df..cf572f1 100644 --- a/README.md +++ b/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-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-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). diff --git a/docker-compose-generator/docker-fragments/opt-save-memory.yml b/docker-compose-generator/docker-fragments/opt-save-memory.yml new file mode 100644 index 0000000..6e9cfb4 --- /dev/null +++ b/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 \ No newline at end of file