[GH-ISSUE #620] Template Obsidian LiveSync : Error on link #1487

Closed
opened 2026-04-20 10:41:22 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @proteck on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/Dokploy/templates/issues/620

Originally assigned to: @Siumauricio, @Copilot on GitHub.

To Reproduce

  1. Create a new service from template.
  2. Search "Obsidian"
  3. Try to click on "github" or "website" link

The are the folowing :

Current vs. Expected behavior

Expected :

Provide environment information

Dokploy version : v0.26.2

Which area(s) are affected? (Select all that apply)

Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Both

Additional context

No response

Will you send a PR to fix it?

No

Originally created by @proteck on GitHub (Dec 22, 2025). Original GitHub issue: https://github.com/Dokploy/templates/issues/620 Originally assigned to: @Siumauricio, @Copilot on GitHub. ### To Reproduce 1. Create a new service from template. 2. Search "Obsidian" 3. Try to click on "github" or "website" link The are the folowing : - https://github.com/apache/couchdb - https://couchdb.apache.org/ ### Current vs. Expected behavior Expected : - https://github.com/vrtmrz/obsidian-livesync - https://obsidian.md/sync ### Provide environment information ```bash Dokploy version : v0.26.2 ``` ### Which area(s) are affected? (Select all that apply) Application ### Are you deploying the applications where Dokploy is installed or on a remote server? Both ### Additional context _No response_ ### Will you send a PR to fix it? No
Author
Owner

@louanfontenele commented on GitHub (Dec 30, 2025):

Until they fix, you can use my docker-composer.yml

services:
  couchdb:
    image: couchdb:latest
    container_name: obsidian-livesync
    restart: unless-stopped
    user: 5984:5984
    environment:
      - COUCHDB_USER=${COUCHDB_USER}
      - COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
    volumes:
      - couchdb_data:/opt/couchdb/data
      - couchdb_etc:/opt/couchdb/etc/local.d
    ports:
      - "5984:5984"
    networks:
      - dokploy-network

  # This container runs once to configure everything, then exits
  init-couchdb:
    image: curlimages/curl:latest
    container_name: obsidian-livesync-init
    restart: "no"
    depends_on:
      - couchdb
    environment:
      - COUCHDB_USER=${COUCHDB_USER}
      - COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
      - COUCHDB_HOST=http://couchdb:5984
    command: >
      /bin/sh -c "
      echo 'Waiting for database to start...' && sleep 10 &&
      echo '1. Creating databases...' &&
      curl -X PUT $${COUCHDB_HOST}/_users -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true &&
      curl -X PUT $${COUCHDB_HOST}/_replicator -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true &&
      curl -X PUT $${COUCHDB_HOST}/_global_changes -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true &&
      curl -X PUT $${COUCHDB_HOST}/obsidian -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true &&
      echo '2. Enabling CORS...' &&
      curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/httpd/enable_cors -d '\"true\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} &&
      curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/origins -d '\"*\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} &&
      curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/credentials -d '\"true\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} &&
      curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/methods -d '\"GET, PUT, POST, HEAD, DELETE\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} &&
      curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/headers -d '\"accept, authorization, content-type, origin, referer\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} &&
      echo 'Setup complete!'
      "
    networks:
      - dokploy-network

volumes:
  couchdb_data:
  couchdb_etc:

networks:
  dokploy-network:
    external: true

the env

COUCHDB_USER=YourUser
COUCHDB_PASSWORD="YourSafePassword"
<!-- gh-comment-id:3698485861 --> @louanfontenele commented on GitHub (Dec 30, 2025): Until they fix, you can use my docker-composer.yml ```yaml services: couchdb: image: couchdb:latest container_name: obsidian-livesync restart: unless-stopped user: 5984:5984 environment: - COUCHDB_USER=${COUCHDB_USER} - COUCHDB_PASSWORD=${COUCHDB_PASSWORD} volumes: - couchdb_data:/opt/couchdb/data - couchdb_etc:/opt/couchdb/etc/local.d ports: - "5984:5984" networks: - dokploy-network # This container runs once to configure everything, then exits init-couchdb: image: curlimages/curl:latest container_name: obsidian-livesync-init restart: "no" depends_on: - couchdb environment: - COUCHDB_USER=${COUCHDB_USER} - COUCHDB_PASSWORD=${COUCHDB_PASSWORD} - COUCHDB_HOST=http://couchdb:5984 command: > /bin/sh -c " echo 'Waiting for database to start...' && sleep 10 && echo '1. Creating databases...' && curl -X PUT $${COUCHDB_HOST}/_users -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true && curl -X PUT $${COUCHDB_HOST}/_replicator -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true && curl -X PUT $${COUCHDB_HOST}/_global_changes -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true && curl -X PUT $${COUCHDB_HOST}/obsidian -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} || true && echo '2. Enabling CORS...' && curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/httpd/enable_cors -d '\"true\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} && curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/origins -d '\"*\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} && curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/credentials -d '\"true\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} && curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/methods -d '\"GET, PUT, POST, HEAD, DELETE\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} && curl -X PUT $${COUCHDB_HOST}/_node/nonode@nohost/_config/cors/headers -d '\"accept, authorization, content-type, origin, referer\"' -u $${COUCHDB_USER}:$${COUCHDB_PASSWORD} && echo 'Setup complete!' " networks: - dokploy-network volumes: couchdb_data: couchdb_etc: networks: dokploy-network: external: true ``` the env ``` COUCHDB_USER=YourUser COUCHDB_PASSWORD="YourSafePassword" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/templates#1487