Skip to content

Commit

Permalink
Add couchDB standalone setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ninadingole committed Apr 13, 2024
1 parent 8a31d72 commit 9d43dc9
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ use `-d` to start compose in detach mode
| Prometheus Push Gateway || |
| [ScyllaDB](./scylladb/Readme.md) |||
| SonarQube || |
| [CouchDB](./couchdb/README.md) || |
| [Weaviate](./weaviate/README.md) || |
| [Redis](./redis/README.md) [In-Progress] || |
| KSQLDB [Planned] | | |
| MySQL [Planned] | | |
| MongoDB [Planned] | | |
| CockroachDB [Planned] | | |
| [Redis](./redis/README.md) [In-Progress] || |
| [Weaviate](./weaviate/README.md) || |

## How to contribute

Expand Down
43 changes: 43 additions & 0 deletions couchdb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# CouchDB

![CouchDB Logo](https://docs.couchdb.org/en/stable/_static/logo.png)

Apache CouchDB is an open-source NoSQL database that uses JSON to store data. It is a distributed, fault-tolerant, and
schema-free document-oriented database that is accessible through a RESTful HTTP/JSON API. CouchDB is written in Erlang
and is available on multiple platforms.

## Prerequisites

- Docker
- Docker Compose

## Running the Stack

### Standalone

Inside `standalone` directory, run `docker-compose up` to start the connector.

#### Port Configurations

- `5984` - CouchDB REST API



## Configurations

All the configurations are available in folder `standalone/config/local.ini`.

Default authentication credentials:
- Username: `admin`
- Password: `password`
- Secret: `secret`




## CouchDB Fauxton

CouchDB comes with a built-in administration interface called Fauxton. It is a web-based interface that allows you to
manage your CouchDB instance. You can access Fauxton by visiting [http://localhost:5984/_utils/](http://localhost:5984/_utils/) in your browser.

![CouchDB Fauxton](./img/ui.png)
Empty file.
Binary file added couchdb/img/ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions couchdb/standalone/config/local.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[couchdb]
single_node=true
uuid=0a959b9b8227188afc2ac26ccdf345a6

[admins]
admin=password

[chttpd_auth]
secret=secret
allow_persistent_cookies = true


22 changes: 22 additions & 0 deletions couchdb/standalone/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
version: '3'

services:
couchdb:
container_name: couchdb
image: couchdb:latest
ports:
- 5984:5984
volumes:
- ./config/local.ini:/opt/couchdb/etc/local.ini
- couchdb_data:/opt/couchdb/data
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5984/_up"]
interval: 30s
timeout: 10s
retries: 5


volumes:
couchdb_data:

0 comments on commit 9d43dc9

Please sign in to comment.