Skip to content

AntonZN/fastapi-tortoise-aerich-traefik-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI + Tortoise + Aerich + Traefik + Docker.

Quick example of FastAPI with Tortoise and Aerich.

Requirements

Quick Start

Rename env_template -> .env and edit.

docker-compose up -d --build

Automatic interactive documentation with Swagger UI (from the OpenAPI backend): http://app.localhost/api/v1/docs/

Alternative automatic documentation with ReDoc (from the OpenAPI backend): http://app.localhost/api/v1/redoc/

Traefik UI, to see how the routes are being handled by the proxy: http://localhost:8080

Create the first migration and apply it to the database:

docker-compose exec app aerich init-db

Create Migration

Make a change to the model. Then, run:

docker-compose exec app aerich migrate
docker-compose exec app aerich upgrade

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published