This project was developed following FullCycle's PFA.
- Create a docker-compose.yaml with 3 services
- Create a mysql service with an official MySQL image
- MySQL service must not have a Dockerfile
- MySQL service must have a volume to persist on
dbdata
folder - MySQL service must use
entrypoint-initdb.d
to create & populate db - MySQL service must have a shrared network with App service (without Nginx)
- App service must list data from MySQL
- App service must verify MySQL service is ready before inicialization (Dockerize)
- App service must have a shrared network with Nginx service (without MySQL)
- Nginx service must reverso-proxy to the App
- Nginx service must expose porto 8000
- Nginx service must start after App service has been inicialize
- Nginx service must restart if App service has not been inicialize
- Nginx service must be restarted if the app service has not been started
- Project must run with a simple
docker-compose up
git clone git@github.com:filipe1309/fc-pfa-docker-c2.git
cd fc-pfa-docker-c2
docker-compose up
docker-compose down to remove containers
Access http://localhost:8000/
Done with ♥ by Filipe Leuch Bonfim 🖖