git clone https://github.com/JeremyAndress/fastapi-docker.git
cp .env.example .env
You should now have a directory structure like:
.
├── compose
│ ├── local
│ ├── production
│ ├── scripts
│ └── stage
├── nginx
│ └── site.conf
├── requirements
│ ├── local.txt
│ ├── migrations.txt
│ ├── mysql.txt
│ ├── postgre.txt
│ ├── production.txt
│ └── test.txt
├── screenshots
│ └── ui.png
├── src
│ ├── alembic
│ ├── api
│ ├── core
│ ├── db
│ ├── logs
│ ├── models
│ ├── __pycache__
│ ├── schemas
│ ├── tests
│ ├── utils
│ ├── alembic.ini
│ ├── main.py
│ ├── pre_start.py
│ └── prestart.sh
├── CHANGELOG.md
├── LICENSE
├── .env.example
├── .flake8
├── local.yml
├── production.yml
├── pytest.ini
├── README.md
└── stage.yml
docker-compose -f local.yml build
docker-compose -f local.yml up -d
You will see the automatic interactive API documentation (provided by Swagger UI):
pytest -vvs src/tests/