In this repository was built a simple application to learn docker where the goal is to learn the following concepts:
- Build docker image
- Configure a flask app and database to run on docker
- Communicate between flask and database containers
- Make a request to flask and alter database state
Commands to run it:
cd {PATH_REPOSITORY}/scripts
# To create docker image
bash Build-Docker.sh
# To run containers
bash Build-Docker.sh
# To create docker image and run containers
bash Build-Docker.sh
# To stop and remove containers
bash Build-Docker.sh
This commands should be running by an order:
- Build docker image
- Run the containers
- Stop and Remove containers
Licensed under Apache-2.0 license.