Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bessouat40/docker-postgres-sqlalchemy
Postgresql database connect to sqlalchemy.
https://github.com/bessouat40/docker-postgres-sqlalchemy
beginner beginner-project docker docker-compose postgresql python sqlalchemy tutorial
Last synced: 1 day ago
JSON representation
Postgresql database connect to sqlalchemy.
- Host: GitHub
- URL: https://github.com/bessouat40/docker-postgres-sqlalchemy
- Owner: Bessouat40
- Created: 2023-01-15T19:49:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-26T08:41:17.000Z (10 months ago)
- Last Synced: 2024-01-26T10:00:22.846Z (10 months ago)
- Topics: beginner, beginner-project, docker, docker-compose, postgresql, python, sqlalchemy, tutorial
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Connection between Postgres database and python (SQLAlchemy)
This project is an exemple of how you can deploy with Docker a PostGreSQL database and access it with python.
## Technologies
* `Docker` in order to dockerize our code. This make easier the deployment of our services
* `PostGreSQL` as database because it's largely used by firms
* `SqlAlchemy` for SQL querys
## PostGreSQL database
We deploy our PostGreSQL database. It can be visualize with some tools like DbVisualizer.
## USAGE
We run our services with this command :
`docker-compose build && docker-compose up db -d`
Wait for the database to be available and ready to accept connections...
Then :
`docker-compose up api` # need to add a healthcheck