Update
Deploy authentik / deploy (push) Successful in 16s
Deploy duplicati / deploy (push) Successful in 6s
Deploy immich / deploy (push) Successful in 17s
Deploy obsidian / deploy (push) Successful in 11s

This commit is contained in:
Mike McFetridge
2026-07-22 20:31:54 -04:00
parent daa8765e1c
commit 3d3b9097d5
8 changed files with 211 additions and 106 deletions
+21 -19
View File
@@ -1,30 +1,32 @@
# Obsidian Self-Hosted LiveSync (CouchDB Engine)
services:
couchdb-obsidian-livesync:
image: docker.io/oleduc/docker-obsidian-livesync-couchdb:master
container_name: obsidian-livesync
# image: couchdb:3.3.3 # Specify a stable CouchDB version
image: 'docker.io/oleduc/docker-obsidian-livesync-couchdb:master'
restart: unless-stopped
environment:
# User and password for CouchDB admin access
- COUCHDB_USER=miker
- COUCHDB_PASSWORD=tw9222dvO91ZHb
- COUCHDB_DATABASE=obsidian
- SERVER_DOMAIN=https://obsidian.mikemcfetridge.com
# Optional: Set PUID, PGID, UMASK, and TZ for user/group permissions and timezone
- PUID=1000
- PGID=1000
- UMASK=0022
- TZ=America/New_York # Adjust timezone as needed
- COUCHDB_USER=${COUCHDB_USER}
- COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
- COUCHDB_DATABASE=${COUCHDB_DATABASE}
- SERVER_DOMAIN=${SERVER_DOMAIN}
- PUID=${PUID}
- PGID=${PGID}
- UMASK=002
- TZ=${TZ}
volumes:
# Mount a local directory for CouchDB data persistence
- /home/miker/docker/obsidian/data:/opt/couchdb/data
# Mount a local directory for CouchDB configuration files
- /home/miker/docker/obsidian/config:/opt/couchdb/etc/local.d
- ${DATA_PATH}/data:/opt/couchdb/data
- ${DATA_PATH}/config:/opt/couchdb/etc/local.d
ports:
# Map CouchDB's default port 5984 to the host machine
- "5984:5984"
restart: unless-stopped # Ensure the container restarts automatically unless explicitly stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5984/_up"]
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
networks:
- main
networks:
main:
external: true # Tells Compose not to create this network
external: true