Use Docker Compose To Run Application Locally And On GitHub Actions

preview_player
Показать описание
In this video, we are using docker-compose to run Redis and MongoDB containers locally. Our application then connects to those services using exposed ports and environment variables injected using as-a utility. We can run the same docker-compose command on GitHub Actions CI to run the services, and then start the application and run Cypress tests using cypress-io/github-action code.

Рекомендации по теме
Комментарии
Автор

Is there any way we can access the docker container running inside the Github UI?

realscreen
Автор

This tutorial exposes DB ports to the outside world. That is not a good idea at all.

michaelroberts