A mongodb api service using fastapi, deployed using docker-compose
git clone https://github.com/Char1esOrz/mongodb-fastapi-docker-compose
cd mongodb-fastapi-docker-compose
cp .env.example .env
Now you can modify the .env file to set the parameters of mongodb and fastapi
vim .env
Run
docker-compose up
Open the server by clicking on the following link: http://localhost:8000/docs