switched to network mode host + changed init + compose

This commit is contained in:
2022-11-06 10:08:50 +01:00
parent 9ed53939a1
commit 60c47cad0f
3 changed files with 4 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y iputils-ping
#RUN apt-get update && apt-get install -y iputils-ping
# Install pip requirements
COPY requirements.txt .
@@ -24,4 +24,4 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /
USER appuser
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
CMD ["gunicorn", "--bind", "0.0.0.0:5200", "web2mqtt.webapp:app"]
CMD ["gunicorn", "--bind", "0.0.0.0:5200", "--timeout", "60", "--workers", "2", "web2mqtt.webapp:app"]