From d43ae912d3511ddf53f360185cd54ac0c683554f Mon Sep 17 00:00:00 2001 From: maxlath Date: Thu, 21 Nov 2024 22:11:09 +0100 Subject: [PATCH] couchdb: add custom configuration --- .gitignore | 4 +++- configs/0_local.ini | 6 ++++++ docker-compose.yml | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 configs/0_local.ini diff --git a/.gitignore b/.gitignore index 8b2d3cb..82ba10d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ inventaire data -log \ No newline at end of file +log +configs/docker.ini + diff --git a/configs/0_local.ini b/configs/0_local.ini new file mode 100644 index 0000000..c9cc7e4 --- /dev/null +++ b/configs/0_local.ini @@ -0,0 +1,6 @@ +; CouchDB configuration file, named to have a lower priority than ./docker.ini +; See https://docs.couchdb.org/en/stable/config/index.html + +[fabric] +; Prevent "No DB shards could be opened" errors, see https://github.com/apache/couchdb/issues/4497 +shard_timeout_min_msec = 5000 diff --git a/docker-compose.yml b/docker-compose.yml index 7edab98..09b8096 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: COUCHDB_PASSWORD: "yourcouchdbpassword" volumes: - './data/couchdb:/opt/couchdb/data' + - './configs:/opt/couchdb/etc/local.d' network_mode: host tty: true elasticsearch: