pbbg/database
This repo demonstrates a multi-container docker app that decouples concerns between containers for an ideal development experience in a team of open source contributors with various tech and language specialties as well as ease of deployment since all services and containers can more easily be moved as one/at once and restarted with a single docker command.
Container | Service | Internal Port | External Port |
---|---|---|---|
/frontend | User Interface with Vue.js | 80 | |
/backend | API with Laravel 8 | 9000 | |
/database | Database with Mysql | 3306 | |
/proxy | Reverse proxy with Nginx | 80 | 80 |
How to start this project locally
.env
in project root and copy content of .env.example
./scripts/local-start.sh
You may need to grant 'execute script' permissions to any of the .sh scripts in this project before you can use them.
After everything is started, you can find the application running on http://localhost
, and the backend (API) is
accessible by hitting an example endpoint at http://localhost/api/tests
.
docker pull pbbg/database