services: couchdb: image: couchdb:3 container_name: obsidian-livesync restart: unless-stopped ports: - "127.0.0.1:5984:5984" environment: - COUCHDB_USER=${COUCHDB_USER} - COUCHDB_PASSWORD=${COUCHDB_PASSWORD} volumes: - ./data:/opt/couchdb/data - ./couchdb-config/local.ini:/opt/couchdb/etc/local.d/local.ini healthcheck: test: ["CMD", "curl", "-fsS", "-u", "${COUCHDB_USER}:${COUCHDB_PASSWORD}", "http://127.0.0.1:5984/_up"] interval: 30s timeout: 10s retries: 3 start_period: 30s logging: driver: journald options: tag: "{{.Name}}"