Merge pull request #180 from Zeecka/feature/workers_env
Workers in .env file
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# Web application configuration
|
# Web application configuration
|
||||||
WEB_APP_PORT=5000
|
WEB_APP_PORT=5000
|
||||||
|
WEB_WORKERS=8
|
||||||
|
|
||||||
# Application configuration
|
# Application configuration
|
||||||
PROJECT_VERSION=3.1.3
|
PROJECT_VERSION=3.1.3
|
||||||
|
|||||||
+1
-1
@@ -76,4 +76,4 @@ COPY --from=builder /usr/local/bin/jpseek /usr/local/bin/jpseek
|
|||||||
COPY --from=builder /usr/local/bin/jsteg /usr/local/bin/jsteg
|
COPY --from=builder /usr/local/bin/jsteg /usr/local/bin/jsteg
|
||||||
|
|
||||||
# Commande de lancement
|
# Commande de lancement
|
||||||
CMD ["gunicorn", "-w", "8", "-b", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "--capture-output", "aperisolve.utils.wsgi:application"]
|
CMD gunicorn -w ${WEB_WORKERS:-8} -b 0.0.0.0:5000 --access-logfile - --error-logfile - --log-level info --capture-output aperisolve.utils.wsgi:application
|
||||||
|
|||||||
Reference in New Issue
Block a user