darixsamani/fastapipostgresql

By darixsamani

Updated 9 months ago

Template for building FastAPI Asynchronous applications with PostgreSQL

Image
Web Servers
Developer Tools

207

HOW TO RUN APP

Before running the instance of Neo4j, make sure to prepare it properly.
            ```
                 docker run --name postgres -e POSTGRES_PASSWORD=darix   POSTGRES_USER=darix  POSTGRES_DB=darix -d postgres
           ```
Start app
docker run -it -p 8000:8000 darixsamani/fastapipostgresql

I would recommend deploying as a service in Docker Swarm and listen on 0.0.0.0:8000.
docker service create --name fastapipostgresql --publish published=8000,target=8000 darixsamani/fastapipostgresql

Docker Pull Command

docker pull darixsamani/fastapipostgresql