-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a31d72
commit 9d43dc9
Showing
6 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |