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: