Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janl/docker-couchdb
:whale: Yet Another Dockerized CouchDB
https://github.com/janl/docker-couchdb
Last synced: 3 months ago
JSON representation
:whale: Yet Another Dockerized CouchDB
- Host: GitHub
- URL: https://github.com/janl/docker-couchdb
- Owner: janl
- License: apache-2.0
- Fork: true (klaemo/docker-couchdb)
- Created: 2015-06-20T13:45:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-20T14:16:14.000Z (over 9 years ago)
- Last Synced: 2024-04-07T01:27:39.267Z (9 months ago)
- Language: Python
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
YADC
===Yet Another Dockerized CouchDB.
Put the couch in a docker container and ship it anywhere.If you're looking for a CouchDB with SSL support you can check out [klaemo/couchdb-ssl](https://index.docker.io/u/klaemo/couchdb-ssl/)
- Version (stable): `CouchDB 1.6.1`, `Erlang 17.5.3`
- Version (dev): `CouchDB 2.0 developer preview`, `Erlang 17.0`## Run (stable)
Available in the docker index as [klaemo/couchdb](https://index.docker.io/u/klaemo/couchdb/)
```bash
[sudo] docker pull klaemo/couchdb:latest# expose it to the world on port 5984
[sudo] docker run -d -p 5984:5984 --name couchdb klaemo/couchdbcurl http://localhost:5984
```## Run (stable with mounted Volume)
```bash
[sudo] docker pull klaemo/couchdb:latest# expose it to the world on port 5984 and use your current directory as the CouchDB Database directory
[sudo] docker run -d -p 5984:5984 -v $(pwd):/usr/local/var/lib/couchdb --name couchdb klaemo/couchdbcurl http://localhost:5984
```## Features
* built on top of the solid and small `debian:wheezy` base image
* exposes CouchDB on port `5984` of the container
* runs everything as user `couchdb` (security ftw!)
* docker volumes for data and logsThe previous version of this image used to come with a process manager to keep
CouchDB running. As of Docker 1.2 you can use the `--restart` flag to accomplish this.## Run (dev)
Available on the docker registry as [klaemo/couchdb:2.0-dev](https://index.docker.io/u/klaemo/couchdb/)
```bash
# expose the cluster to the world
[sudo] docker run -i -t -p 15984:15984 -p 25984:25984 -p 35984:35984 --name couchdb klaemo/couchdb:2.0-devcurl http://localhost:15984
curl http://localhost:25984
curl http://localhost:35984
```...or you can pass arguments to the binary
```bash
docker run -i -t klaemo/couchdb:2.0-dev --admin=foo:bar
```## Build your own
You can use `klaemo/couchdb` as the base image for your own couchdb instance.
You might want to provide your own version of the following files:* `local.ini` for CouchDB
Example Dockerfile:
```
FROM klaemo/couchdbCOPY local.ini /usr/local/etc/couchdb/
```and then build and run
```
[sudo] docker build -t you/awesome-couchdb .
[sudo] docker run -d -p 5984:5984 -v ~/couchdb:/usr/local/var/lib/couchdb you/awesome-couchdb
```## Contributing
Please use Github issues for any questions, bugs, feature requests. :)
## Contributors
- [@joeybaker](https://github.com/joeybaker)