From ab9c0190bb5e6eaf49b9bb7fafa314d17da10a7b Mon Sep 17 00:00:00 2001 From: Jakob Endler Date: Mon, 12 Sep 2022 18:36:50 +0200 Subject: [PATCH] Fixed Docker command in docs. --- docs/setup_own_server.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/setup_own_server.md b/docs/setup_own_server.md index f407535..9fb07eb 100644 --- a/docs/setup_own_server.md +++ b/docs/setup_own_server.md @@ -32,16 +32,18 @@ max_age = 3600 Make `local.ini` and run with docker run like this, you can launch the CouchDB. ``` -$ docker run --rm -it -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v .local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb +$ docker run --rm -it -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v /path/to/local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb ``` +*Remember to replace the path with the path to your local.ini* Note: At this time, the file owner of local.ini became 5984:5984. It's the limitation docker image. please change the owner before editing local.ini again. If you could confirm that Self-hosted LiveSync can sync with the server, launch docker image as background as you like. -example) +Example to run docker in detached mode: ``` -$ docker run -d --restart always -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v .local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb +$ docker run -d --restart always -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v /path/to/local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb ``` +*Remember to replace the path with the path to your local.ini* ## Access from mobile device If you want to access Self-hosted LiveSync from mobile devices, you need a valid SSL certificate.