You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/01/23 21:11:53 UTC

[GitHub] [couchdb-docker] SSARCandy commented on issue #73: Configuration from docker config or secret?

SSARCandy commented on issue #73:
URL: https://github.com/apache/couchdb-docker/issues/73#issuecomment-766179802


   > Not sure if things have changed since the last post, but I could not get it to work when mounting a Docker Swarm config to `/opt/couchdb/etc/local.d/couch.ini`. The container exits immediately with status of 1 and no logs produced. Using 3.1.0.
   > 
   > This workaround resolved it for me:
   > 
   > ```yaml
   > command: '/bin/bash -c "cp -f /couch-v1 /opt/couchdb/etc/local.d/couch.ini && /opt/couchdb/bin/couchdb"'
   > configs:
   >   - couch-v1
   > ```
   
   This workaround will lose all environment variables, i.e. `NODENAME`, `ERL_FLAGS`.
   Do you have any suggestions about this?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org