diversify the flask ports, each flask instance has another port to prevent confusion;

This commit is contained in:
Marco Zeisler
2021-05-28 21:16:01 +02:00
parent 399e0a4173
commit ea1e75eb22
8 changed files with 36 additions and 20 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
RUN cd deps; ls; pip install dse-shared-libs-1.tar.gz;
ENV PORT 5000
EXPOSE 5000
ENV PORT 5001
EXPOSE 5001
ENTRYPOINT [ "python" ]
CMD [ "event_store_server.py" ]
@@ -27,4 +27,4 @@ def home_page():
if __name__ == '__main__':
el = EventLogger(redis)
threading.Thread(target=el.setup_msq_queue).start()
threading.Thread(target=app.run).start()
threading.Thread(target=app.run, args=('0.0.0.0', 5001)).start()