I recommend: => CONNECTION_PORT: 3000 => IMAGE_NAME: task-api
- Run
docker build -t [IMAGE_NAME] .
command - Run
docker-compose up
- Run
docker run -it -p [CONECTION_PORT]:3000 [IMAGE_NAME]
command
Check if your 3306 port isn't occupied by an isntance of MySQL or other service already. If that is the case then Pause the process and let the docker-compose image use it, while running the test. In other case you can modified the docker-compose.yml accordingly to allocate a port of convenience.
Access the next route: http://localhost:[CONNECTION_PORT]/docs
From there you will be able to acces the SwaggerUI documentation
I recommend: => CONNECTION_PORT: 4000 => IMAGE_NAME: task-api
- Run
docker-compose up
- Run
npm run dev
command