This is a premade stack designed to reduce friction on adopt MongoDB with RESTHeart.
- MongoDB (without authentication)
- RESTHeart
--git@github.com:docker-gallery/RESTheart.git
|--docker-compose.yml (1)
|--readme.md
|--restheart
|--config
|--restheart.yml (2)
|--security.yml (3)
Docker Compose file used do declare configurations about both services (restheart and mongodb).
Used to configure RESTHeart.
Take a look at line 69: mongo-uri: mongodb://mongodb
defines a connectionstring to work with mongodb.
Used to configure authentication and authorization on RESTHeart, by default i've produced some rules, like:
- Anonymus Uses can only read the
publicdb
database data (only if you create the database with namepublicdb
). - User
admin
user has passwordadmin
, they hasadmins
role and can do everything. - User
user
user has passworduser
, they hasusers
role and can do everything only onpublicdb
.
- On any docker environment
- There we go! ` Run
git clone https://github.com/docker-gallery/RESTheart.git
cd ./RESTheart
docker-compose up
Just it.