Skip to content

A mongodb api service using fastapi, deployed using docker-compose

License

Notifications You must be signed in to change notification settings

Char1esOrz/mongodb-fastapi-docker-compose

Repository files navigation

mongodb-fastapi-docker-compose

A mongodb api service using fastapi, deployed using docker-compose

Installation ( Quick Start )

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

如果你在国内,请修改Dockerfile 增加 -i https://pypi.tuna.tsinghua.edu.cn/simple

vim .env
#修改
RUN pip install --no-cache-dir -r requirements.txt
# 为
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

Run

docker compose up

Open the server by clicking on the following link: http://localhost:8000/docs

About

A mongodb api service using fastapi, deployed using docker-compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published