From 02138b57f8aa10509b96341259012263ca33d168 Mon Sep 17 00:00:00 2001 From: Fern Garden Date: Fri, 4 Jul 2025 14:05:35 +0800 Subject: [PATCH 1/4] Add obsidian-livesync --- obsidian-livesync/compose.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 obsidian-livesync/compose.yaml diff --git a/obsidian-livesync/compose.yaml b/obsidian-livesync/compose.yaml new file mode 100644 index 0000000..73d3ada --- /dev/null +++ b/obsidian-livesync/compose.yaml @@ -0,0 +1,14 @@ +services: + obsidian-livesync: + image: couchdb:latest + container_name: obsidian-livesync + user: 1000:1000 + environment: + - COUCHDB_USER=obsidian + - COUCHDB_PASSWORD=${COUCHDB_PASSWORD} + volumes: + - /mnt/docker/obsidian-livesync/data:/opt/couchdb/data + - /mnt/docker/obsidian-livesync/config:/opt/couchdb/etc/local.d + ports: + - 5984:5984 + restart: unless-stopped \ No newline at end of file From 99cc9cd5aeb82b538a6d02682ae64dd3b27de48b Mon Sep 17 00:00:00 2001 From: komodo Date: Fri, 4 Jul 2025 14:10:17 +0800 Subject: [PATCH 2/4] [Komodo] fern: Write Compose File: update obsidian-livesync/compose.yaml --- obsidian-livesync/compose.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/obsidian-livesync/compose.yaml b/obsidian-livesync/compose.yaml index 73d3ada..ded8d22 100644 --- a/obsidian-livesync/compose.yaml +++ b/obsidian-livesync/compose.yaml @@ -11,4 +11,16 @@ services: - /mnt/docker/obsidian-livesync/config:/opt/couchdb/etc/local.d ports: - 5984:5984 - restart: unless-stopped \ No newline at end of file + networks: + - default + - proxy + labels: + caddy: ols.ferngarden.net + caddy.import: internal + caddy.reverse_proxy: '{{ upstreams 5984 }}' + restart: unless-stopped + + networks: + default: + proxy: + external: true \ No newline at end of file From 2e64bd621c80adcdc4c3caaa03adbe2558fff674 Mon Sep 17 00:00:00 2001 From: komodo Date: Fri, 4 Jul 2025 14:10:56 +0800 Subject: [PATCH 3/4] [Komodo] fern: Write Compose File: update obsidian-livesync/compose.yaml --- obsidian-livesync/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obsidian-livesync/compose.yaml b/obsidian-livesync/compose.yaml index ded8d22..fd80653 100644 --- a/obsidian-livesync/compose.yaml +++ b/obsidian-livesync/compose.yaml @@ -20,7 +20,7 @@ services: caddy.reverse_proxy: '{{ upstreams 5984 }}' restart: unless-stopped - networks: +networks: default: proxy: external: true \ No newline at end of file From 5baa893a3b5be960ed738a46601649c6fc4baf15 Mon Sep 17 00:00:00 2001 From: komodo Date: Fri, 4 Jul 2025 16:48:19 +0800 Subject: [PATCH 4/4] [Komodo] Commit Sync: update resources.toml --- resources.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources.toml b/resources.toml index c7a0a39..3f1a522 100644 --- a/resources.toml +++ b/resources.toml @@ -411,6 +411,18 @@ MOLLY_VAPID_PRIVKEY=[[MOLLY_VAPID_PRIVKEY]] ## +[[stack]] +name = "obsidian-livesync" +[stack.config] +server = "docker.local" +linked_repo = "github" +run_directory = "obsidian-livesync" +environment = """ +COUCHDB_PASSWORD=[[OBSIDIAN_LIVESYNC_DB_PASSWORD]] +""" + +## + [[stack]] name = "paperless" tags = ["internal"]