couchdb: add custom configuration

This commit is contained in:
maxlath
2024-11-21 22:11:09 +01:00
parent 268b6e07b4
commit d43ae912d3
3 changed files with 10 additions and 1 deletions

4
.gitignore vendored
View File

@@ -1,3 +1,5 @@
inventaire
data
log
log
configs/docker.ini

6
configs/0_local.ini Normal file
View File

@@ -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

View File

@@ -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: