Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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