{"repo":"Salfiii/fastapi-template","free":true,"listed":false,"github":"https://github.com/Salfiii/fastapi-template","clone":"git clone https://github.com/Salfiii/fastapi-template.git","description":"A Python FastAPI template project with poetry and docker","language":"Python","stars":16,"topics":["docker","fastapi","helm","poetry","python","template"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"Python Fastapi Template Project with uv and Docker used frameworks/technologies: - Fastapi - Fastapi & Docker - uv - Docker - Podman - Helm How to use the template 1. Clone the template (Or use the \"Use this template\" button in GitHub directly!) - git clone https://github.com/Salfiii/fastapi-template.git 2. remove the \".git\"-Folder from the local repository to delete the reference to the template project 3. create a new git repository locally 4. (install uv if you want to run it locally) 5. Install Docker or Podman or use a remote machine if you have one 6. change the project name from \"fastapi-template\" to something to your likings (you can also run it directly, if you like so) - in the parent Folder \"fastapi-template\" - in the pyproject.toml - in the main.py - in the dockerfile 7. Run the dockerfile (you can change \"fastapi-template\" to whatever you like): - docker build -t fastapi-template . && docker run -it -p 50001:8080 fastapi-template - If you want to remove the dockerfile after exiting the service automatically, add \"--rm\" before \"-it\" - You can change the port 50001 to whatever port you want to use on your host 8. Run with Podman: - podman build -t fastapi-template . - podman run --rm -it -p 50001:8080 fastapi-template - To let Podman choose a free host port: podman run -d --name fastapi-template-local -p 127.0.0.1::8080 fastapi-template - Show the selected port: podman port fastapi-template-local 8080 - Stop and remove the detached container: podman rm -f fastapi-t","default_branch":null,"files":null,"tree":[],"storefront":"/r/Salfiii","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Salfiii/fastapi-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}