Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Amphibian
Commits
46f6d2f3
Commit
46f6d2f3
authored
Aug 09, 2019
by
Matija Obreza
Browse files
Updated README.md
parent
f32a0fb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
46f6d2f3
...
...
@@ -30,12 +30,12 @@ docker volume create mongo_data
docker run
--rm
--name
mongo
-d
-v
mongo_data:/data/db
--network
mongo_net mongo:4.1
# Run mongo shell
docker
exec
-it
mongo mongo
docker
exec
-it
mongo mongo
-u
root
# Make database and user
use amphibian
db.createUser
({
"user"
:
"
root
"
,
"pwd"
:
"
example
"
,
"user"
:
"
amphibian
"
,
"pwd"
:
"
test
"
,
"roles"
:
[
{
"role"
:
"readWrite"
,
"db"
:
"amphibian"
}
]
...
...
@@ -49,8 +49,8 @@ docker run --rm --name amphibian --network mongo_net \
-e
'mongo.hosts=mongo'
\
-e
'mongo.port=27017'
\
-e
'mongo.database=amphibian'
\
-e
'mongo.username=
root
'
\
-e
'mongo.password=
example
'
\
-e
'mongo.username=
amphibian
'
\
-e
'mongo.password=
test
'
\
dockerhub.croptrust.org/genesys-pgr/amphibian:master
```
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment