Skip to content

Commit 05745e4

Browse files
committed
update to handle user and passwd requirement
1 parent 3eaa551 commit 05745e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

couchdb/bash/create_DB.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# Create Database
2-
curl -X PUT http://localhost:5984/heroes
2+
curl -X PUT http://admin:password@localhost:5984/heroes
3+
4+
# curl -X PUT http://admin:password@localhost:5984/students

couchdb/bash/start_DB.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Start a CouchDB container with exposed port and bind mount
2-
docker run -p 5984:5984 --mount type=bind,source=/tmp/couchdb/data,target=/opt/couchdb/data -d --name my-couchdb couchdb:latest
2+
docker run -p 5984:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password --mount type=bind,source=/tmp/couchdb/data,target=/opt/couchdb/data -d --name my-couchdb couchdb:latest
33

44
# Fauxton UI - localhost:5984/_utils/

0 commit comments

Comments
 (0)