Skip to content

A docker container for the CouchDB instance required by obsidian-livesync

Notifications You must be signed in to change notification settings

oleduc/docker-obsidian-livesync-couchdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CouchDB Configuration for Obsidian LiveSync

This repository provides a Docker container for configuring CouchDB specifically for use with Obsidian LiveSync. It automates the setup process by parsing the bash script (couchdb-init.sh) provided by obsidian-livesync's maintainer and updating CouchDB's configuration file (local.ini) according to the settings the plugin needs.

The container is built and published automatically via GitHub Actions.

Docker Hub Page

Features

  • Automated CouchDB Configuration: Extracts necessary settings for Obsidian LiveSync from the bash script created by the plugin maintainer.
  • Build time configuration: Configures couchDB at build time via configuration files instead of using couchDB APIs which simplifies the process.
  • Auto-Publishing: Docker images are automatically built and pushed to a container registry via GitHub Actions.

Pulling the Docker Image

To use the pre-built image, pull it from the container registry:

docker pull docker.io/docker-obsidian-livesync-couchdb:latest

Running the Container

Run the container with CouchDB configured for Obsidian LiveSync:

docker run -d \
  -e SERVER_DOMAIN=example.com \
  -e COUCHDB_USER=username \
  -e COUCHDB_PASSWORD=password \
  -e COUCHDB_DATABASE=obsidian \
  -p 5984:5984 \
  docker.io/oleduc/docker-obsidian-livesync-couchdb:master

Or via docker-compose

version: "3.8"

services:
  couchdb-obsidian-livesync:
    image: docker.io/oleduc/docker-obsidian-livesync-couchdb:master
    container_name: couchdb-obsidian-livesync
    restart: always
    environment:
      SERVER_URL: ${SERVER_URL}
      COUCHDB_USER: ${COUCHDB_USER}
      COUCHDB_PASSWORD: ${COUCHDB_PASSWORD}
      COUCHDB_DATABASE: ${COUCHDB_DATABASE}
    ports:
      - "${COUCHDB_PORT:-5984}:5984"
    volumes:
      - ${COUCHDB_DATA}:/opt/couchdb/data

Testing Configuration

To verify the updated configuration:

Open your CouchDB dashboard (http://example.com:5984/_utils).
Check that the settings are applied under /_node/_local/_config.

License

This repository is licensed under the MIT License. Contributions are welcome!

Credits

About

A docker container for the CouchDB instance required by obsidian-livesync

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published