BAEL-2275: Move docker directory to test resources. Add README.md for it.

This commit is contained in:
Lukasz Rys
2019-12-07 21:50:20 +01:00
parent 6d1caf8026
commit 9de21f0fc8
4 changed files with 8 additions and 2 deletions
@@ -0,0 +1,7 @@
## Setup DDD Hexagonal Spring Application
To run this project, follow these steps:
* Launch the Spring Boot Application (DomainLayerApplication).
* Run the application database by executing `docker-compose up` in this directory.
* By default, application will connect to this database (configuration in *ddd-layers.properties*)
@@ -0,0 +1,14 @@
version: '3'
services:
order-mongo-database:
image: mongo:3.4.13
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: order-database
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
@@ -0,0 +1,12 @@
db.createUser(
{
user: "order",
pwd: "order",
roles: [
{
role: "readWrite",
db: "order-database"
}
]
}
);