Comments (5)
For example I failed to modify location of ./static
path from http://localhost/static/
to http://localhost/
because there are some labels in docker-compose.yml
control the traefik and fastapi routs
from fastapi-alembic-sqlmodel-async.
Hello, @mbnoimi this template uses traefik I plan to remove nginx in a future update. It was added to host static files but the reality is that it is not needed on the ingress.
Traefik uses routing using hostnames https://doc.traefik.io/traefik/routing/routers/
You can change the labels on the docker-compose file. I am going to add this info on the README file
from fastapi-alembic-sqlmodel-async.
this template uses traefik I plan to remove nginx in a future update.
I totally agree with you,
BTW, does this template is production ready? If yes; May you please add deployment instructions in README.md?
You can change the labels on the docker-compose file. I am going to add this info on the README file
Thanks a lot
from fastapi-alembic-sqlmodel-async.
Yes it is production ready on my team we have to use it as a base to deploy on AWS using ECS, EC2 and ELB with minor changes but command on fastapi container should be changed by
command: "sh -c 'alembic upgrade head && gunicorn -w 3 -k uvicorn.workers.UvicornWorker app.main:app --bind 0.0.0.0:8000 --timeout 600'"
And database is not a container instead a RDS instance
It is a good idea include it on README
from fastapi-alembic-sqlmodel-async.
Thanks a lot
from fastapi-alembic-sqlmodel-async.
Related Issues (20)
- AuthZ with supertokens HOT 6
- Migration from Sqlmodel to SQLAlchemy 2.0 HOT 3
- Function get_multi_paginated_ordered in base_crud.py HOT 2
- make run-pgadmin fails to run. HOT 1
- How to update many-to-many, and where celery_schedule_jobs table HOT 4
- celery beat is not going in correct table HOT 1
- Mypy Integration HOT 1
- New routes not reflecting in docs
- SQLAlchemy models with circular references update RecursionError
- Many to many data insert HOT 3
- Stuck in filters HOT 2
- How to pass token for protected routes in Swagger? HOT 2
- Task completed but still shows pending HOT 3
- Few issues getting set up (DB, pgadmin, fastAPI reloading, websockets) HOT 4
- Sqlmodel, pydantic update HOT 2
- Where or how to obtain a database session for a task HOT 1
- Exception "got Future <Future pending> attached to a different loop" HOT 2
- Replace Celery to Prefect HOT 1
- joined unique() question HOT 3
- Cannot connect to Redis error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastapi-alembic-sqlmodel-async.