https://github.com/null-none/docker-fastapi-traefik
Dockerizing FastAPI with Postgres, Uvicorn, and Traefik
https://github.com/null-none/docker-fastapi-traefik
docker fastapi python traefik
Last synced: 3 months ago
JSON representation
Dockerizing FastAPI with Postgres, Uvicorn, and Traefik
- Host: GitHub
- URL: https://github.com/null-none/docker-fastapi-traefik
- Owner: null-none
- License: mit
- Created: 2023-04-30T05:26:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-08T20:05:23.000Z (almost 2 years ago)
- Last Synced: 2026-02-13T10:26:13.433Z (5 months ago)
- Topics: docker, fastapi, python, traefik
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dockerizing FastAPI with Postgres, Uvicorn, and Traefik
### Development
Build the images and spin up the containers:
```sh
$ docker-compose up -d --build
```
Test it out:
1. [http://localhost:8008/](http://localhost:8008/)
1. [http://localhost:8081/](http://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:
```sh
$ docker-compose -f docker-compose.prod.yml up -d --build
```