https://github.com/epilif3sotnas/learn-docker
Learn Docker with Flask and PostgreSQL
https://github.com/epilif3sotnas/learn-docker
bash docker flask postgresql python3
Last synced: 3 months ago
JSON representation
Learn Docker with Flask and PostgreSQL
- Host: GitHub
- URL: https://github.com/epilif3sotnas/learn-docker
- Owner: epilif3sotnas
- License: apache-2.0
- Created: 2022-06-09T06:14:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T11:57:04.000Z (over 3 years ago)
- Last Synced: 2025-10-05T19:59:27.704Z (9 months ago)
- Topics: bash, docker, flask, postgresql, python3
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About learn-docker
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
## Requirements (Docker images)
- [Python](https://hub.docker.com/_/python)
- [PostgreSQL](https://hub.docker.com/_/postgres)
## Requirements (Flask app) -> requirements.txt
- [Flask](https://pypi.org/project/Flask)
- [Dataset](https://pypi.org/project/dataset)
- [Psycopg2](https://pypi.org/project/psycopg2)
## Run
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:
1. Build docker image
2. Run the containers
3. Stop and Remove containers
## License
Licensed under Apache-2.0 license.