157
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications
sqldata:
image:
mcr.microsoft.com/mssql/server:2017-latest
nosqldata:
image:
mongo
docker-compose-test.override.yml
version:
'3.4'
services:
redis.data:
ports:
-
"6379:6379"
rabbitmq:
ports:
-
"15672:15672"
-
"5672:5672"
sqldata:
environment:
-
SA_PASSWORD=Pass@word
-
ACCEPT_EULA=Y
ports:
-
"5433:1433"
nosqldata:
ports:
-
"27017:27017"
So, to run the functional/integration tests you must first run this command, from the solution test
folder:
docker-compose -f docker-compose-test.yml -f docker-compose-test.override.yml up
As you can see, these docker-compose files
only start the Redis, RabbitMQ,
SQL Server, and MongoDB
microservices.
Dostları ilə paylaş: