Try to resolve latency between front and back
This commit is contained in:
@@ -20,9 +20,11 @@ EXPOSE 5000
|
|||||||
|
|
||||||
# Variable d'environnement par défaut
|
# Variable d'environnement par défaut
|
||||||
ENV FLASK_ENV=production
|
ENV FLASK_ENV=production
|
||||||
ENV GUNICORN_WORKERS=3
|
ENV GUNICORN_WORKERS=5
|
||||||
ENV GUNICORN_THREADS=2
|
ENV GUNICORN_THREADS=4
|
||||||
|
ENV GUNICORN_WORKER_CLASS=gevent
|
||||||
|
ENV GUNICORN_TIMEOUT=60
|
||||||
|
|
||||||
# Commande de démarrage via gunicorn (attache l'app Flask : app:app)
|
# Commande de démarrage via gunicorn (attache l'app Flask : app:app)
|
||||||
# Utilise timeout raisonnable, bind sur 0.0.0.0:5000
|
# Utilise timeout raisonnable, bind sur 0.0.0.0:5000
|
||||||
CMD ["sh", "-c", "gunicorn --workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --bind 0.0.0.0:5000 --access-logfile - --error-logfile - 'main:create_app()'"]
|
CMD ["sh","-c","gunicorn --workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --worker-class ${GUNICORN_WORKER_CLASS} --timeout ${GUNICORN_TIMEOUT} --bind 0.0.0.0:5000 --access-logfile - --error-logfile - 'main:create_app()'"]
|
||||||
Reference in New Issue
Block a user