Skip to content
hamed shirbandi edited this page Aug 30, 2022 · 18 revisions

How to run with Docker Compose

Here, we have 3 options to make the environment ready and run TaskoMask components through a docker-compose file:

1- Run the environment Independently:

If you want to run or debug some components you need to first make the environment ready because they have some dependencies like MongoDB, Redis, etc. Just run the below commands from the /src/6-Docker/ directory through CLI and then the environment is ready:

...\src\6-Docker> docker-compose -f Infrastucture.yml up -d

2- Run components without debugging:

If you want to run all the components and their dependencies without needing to debug them, you can run the below commands from the /src/6-Docker/ directory through CLI:

...\src\6-Docker> docker-compose build

...\src\6-Docker> docker-compose up -d

Then you should be able to browse different components of the application by using the below URLs :

API: http://localhost:5014

Website: http://localhost:5008

User Panel: http://localhost:5010

Admin Panel: http://localhost:5012

Seq Dashboard: http://localhost:5341

3- Run components with debugging through Visual Studio:

If you need to run and debug all the components in Visual Studio, then you can modify the launchSettings and set the desired services to StartDebugging in default profile named Docker Compose or add new custom profile. Then select docker-compose in the debug items and click on DockerCompose (profile name)

Read related articles on Microsoft.


How to run with Kubernetes

The instructions will be added as soon as we prepare the configurations for it