Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 555 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 555 Bytes

Dockerizing FastAPI with Postgres, Uvicorn, and Traefik

Development

Build the images and spin up the containers:

$ docker-compose -f docker-compose.yml up -d --build

Test it out:

  1. http://fastapi.localhost:8008/
  2. http://fastapi.localhost:8081/

Production

Update the domain in docker-compose.prod.yml, and add your email to traefik.prod.toml.

Build the images and run the containers:

$ docker-compose -f docker-compose.prod.yml up -d --build