Skip to content

filipe1309/fc-pfa-docker-c2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PFA Docker (C2) 🐋

NodeJS

💬 About

This project was developed following FullCycle's PFA.

Challenge 2

  • 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

💻 Technologies

📜 Requirements

💿 Installation

git clone git@github.com:filipe1309/fc-pfa-docker-c2.git
cd fc-pfa-docker-c2

🏃 Running

docker-compose up

docker-compose down to remove containers

Access http://localhost:8000/

License

MIT

About Me


Done with ♥ by Filipe Leuch Bonfim 🖖

Releases

No releases published

Packages

No packages published