- First, use the command
docker build -t movie-repository .
to build the Docker image. - Then use the command
docker run --name="movie-repository" -p 8080:8080 -d
to create a Docker container using this image. - Open localhost:8080 to access your Docker application.
- Use commands below to config poetry project:
poetry config virtualenvs.in-project true poetry install poetry shell
- Use the command
docker pull mongo
to pull the latest MongoDB image from Docker Hub. - Run the MongoDB image in a Docker container and expose it on port
27017
. - Edit the FastAPI start configuration to add environment variables:
total=10
andpage-size=5
. - Start this Poetry project in PyCharm.
Contact me on Discord at dioxide_cn or on QQ at 1050177109.