-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a database at startup #142
Comments
This would be better served as a CouchDB enhancement, not a Docker enhancement. Moving the issue. |
For all restless souls having the same problem, we just redefined the dockerfile
🛋️ Our original services:
- name: couchdb:latest
command: ["sh", "-c", "/opt/couchdb/bin/couchdb & { sleep 3 ; curl -X PUT http://127.0.0.1:5986/_users ; curl -X PUT http://127.0.0.1:5986/_replicator ; curl -X PUT http://127.0.0.1:5986/_global_changes ; fg ; }"] Edit: it seems like port |
The documentation says
Could it be possible to add back the possibility to autocreate the database when the container is not used in a cluster ? It could be a simple
if
on an optional environment variable.The text was updated successfully, but these errors were encountered: