Browse Source

Drop gunicorn and bind to 0.0.0.0 (#12)

Reviewed-on: https://git.k-space.ee/k-space/doorboy-proxy/pulls/12
Co-authored-by: Madis Mägi <madis.magi@k-space.ee>
Co-committed-by: Madis Mägi <madis.magi@k-space.ee>
master
Madis Mägi 3 months ago
committed by Lauri Võsandi
parent
commit
c61f8175e6
  1. 2
      Dockerfile
  2. 2
      doorboy.py
  3. 1
      requirements.txt

2
Dockerfile

@ -5,4 +5,4 @@ COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY *.py ./
CMD ["gunicorn", "--worker-class", "sanic.worker.GunicornWorker", "--workers", "10", "--bind", "[::]:5000", "doorboy:app", "--timeout", "90"]
CMD python doorboy.py

2
doorboy.py

@ -59,4 +59,4 @@ async def view_longpoll(request):
return stream(g, content_type="text/event-stream")
if __name__ == '__main__':
app.run(debug=False, port=5000)
app.run(debug=False, host='0.0.0.0', port=5000)

1
requirements.txt

@ -1,3 +1,2 @@
gunicorn
sanic
motor

Loading…
Cancel
Save