- start the postgres database:
docker run -e POSTGRES_PASSWORD=password -v HOST/PATH/TO/DB:/var/lib/postgresql/data -p 5432:5432 -d postgres
or, for no volume, just:
docker run -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres
- start fastapi:
fastapi run
- test:
pytest