Skip to content
Snippets Groups Projects
Commit 8f922806 authored by Rodrigo Goncalves's avatar Rodrigo Goncalves
Browse files

Including Mongo in the stack

parent e032ec22
No related branches found
No related tags found
1 merge request!18Resolve "Add support to SmartDataContext API"
This commit is part of merge request !18. Comments created here will be created in the context of that merge request.
......@@ -54,6 +54,15 @@ services:
# - 3000:3000
# depends_on:
# - cassandra
mongo:
image: mongo:7.0.12
volumes:
- mongo:/data/db
- ./docker/mongo:/docker-entrypoint-initdb.d/
env_file:
- docker/variables.env
volumes:
mariadb:
cassandra:
mongo:
db.createUser(
{
user: process.env.MONGO_USERNAME,
pwd: process.env.MONGO_PASSWORD,
roles: [
{
role: "readWrite",
db: process.env.MONGO_DATABASE
}
]
}
);
db.createCollection("sample");
\ No newline at end of file
......@@ -14,3 +14,12 @@ JVM_OPTS=-Dcom.sun.management.jmxremote.authenticate=false
CASSANDRA_USERNAME=cassandra
CASSANDRA_PASSWORD=ch4ng3m3
# MongoDB
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=ch4ng3m3
MONGO_INITDB_DATABASE=smartdatacontext
MONGO_USERNAME=smartdatacontext
MONGO_PASSWORD=smartdatacontext
MONGO_DATABASE=smartdatacontext
MONGO_HOST=mongo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment