services: couchdb: image: couchdb:3.4 container_name: couchdb restart: unless-stopped ports: - "5984:5984" environment: - COUCHDB_USER=${COUCHDB_USER} - COUCHDB_PASSWORD=${COUCHDB_PASSWORD} - TZ=America/Chicago volumes: # LOCAL disk, not NFS: CouchDB's file locking breaks over NFSv3, the same # way it did for guacamole-db (MySQL) and semaphore-db. - /var/lib/couchdb/data:/opt/couchdb/data # NOT :ro -- CouchDB 3.x writes runtime config back into the last-loaded ini. # With a read-only mount it exits 1 immediately and logs NOTHING at all. - /var/lib/couchdb/config/local.ini:/opt/couchdb/etc/local.d/local.ini labels: - "com.centurylinklabs.watchtower.enable=false" mem_limit: 1g healthcheck: test: ["CMD", "curl", "-fsS", "http://localhost:5984/_up"] interval: 60s timeout: 10s retries: 3 start_period: 30s