From 44b022f003441d8af9e1b028d5f33979ae6d6d8e Mon Sep 17 00:00:00 2001 From: Ron Gerber Date: Sat, 30 Aug 2025 01:00:58 +0200 Subject: [PATCH] Add Docker Compose troubleshooting for own server setup Added another option for the init command that passes the variables directly. When i tried the command above i got the mentioned error. --- docs/setup_own_server.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/setup_own_server.md b/docs/setup_own_server.md index eacb678..41f42fd 100644 --- a/docs/setup_own_server.md +++ b/docs/setup_own_server.md @@ -132,6 +132,11 @@ If it results like the following: Your CouchDB has been initialised successfully. If you want this manually, please read the script. +If you are using Docker Compose and the above command does not work or displays `ERROR: Hostname missing`, you can try running the following command, replacing the placeholders with your own values: +``` +curl -s https://raw.githubusercontent.com/vrtmrz/obsidian-livesync/main/utils/couchdb/couchdb-init.sh | hostname=http://:5984 username= password= bash +``` + ## 3. Expose CouchDB to the Internet - You can skip this instruction if you using only in intranet and only with desktop devices.