mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
19 lines
424 B
Markdown
19 lines
424 B
Markdown
# FastAPI Best Architecture - Backend
|
|
|
|
## Docker
|
|
|
|
1. Make sure you're at the root of the project
|
|
2. Run the following Docker command to build container:
|
|
|
|
```shell
|
|
docker build -f Dockerfile -t fba_backend_independent .
|
|
```
|
|
|
|
3. Start container
|
|
|
|
Native boot needs to change `127.0.0.1` in `.env` to `host.docker.internal`
|
|
|
|
```shell
|
|
docker run -d -p 8000:8000 --name fba_server fba_backend_independent
|
|
```
|