diversify the flask ports, each flask instance has another port to prevent confusion;
This commit is contained in:
parent
399e0a4173
commit
ea1e75eb22
@ -2,7 +2,7 @@ FROM python:3.8-slim
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
ENV PORT 5000
|
||||
EXPOSE 5000
|
||||
ENV PORT 5002
|
||||
EXPOSE 5002
|
||||
ENTRYPOINT [ "python" ]
|
||||
CMD [ "entity_ident_server.py" ]
|
||||
@ -67,4 +67,4 @@ def get_traffic_lights_geo():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0')
|
||||
app.run('0.0.0.0', 5002)
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -24,4 +24,4 @@ def api2():
|
||||
if __name__ == '__main__':
|
||||
orc = Orchestrator()
|
||||
threading.Thread(target=orc.setup_msg_queues).start()
|
||||
threading.Thread(target=app.run).start()
|
||||
threading.Thread(target=app.run, args=('0.0.0.0', 5003)).start()
|
||||
|
||||
@ -2,7 +2,7 @@ FROM python:3.8-slim
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
ENV PORT 5000
|
||||
EXPOSE 5000
|
||||
ENV PORT 5003
|
||||
EXPOSE 5003
|
||||
ENTRYPOINT [ "python" ]
|
||||
CMD [ "x_way_server.py" ]
|
||||
@ -19,4 +19,4 @@ def api2():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
app.run('0.0.0.0', 5004)
|
||||
|
||||
@ -7,36 +7,38 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- 5672
|
||||
ports:
|
||||
- 5672:5672 # make accessible from host for local testing
|
||||
redis:
|
||||
build:
|
||||
context: ../components/event_store/redis
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- 6379
|
||||
ports:
|
||||
- 6379:6379
|
||||
mongo:
|
||||
build:
|
||||
context: ../components/entitiy_ident/mongo
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- 27017
|
||||
ports:
|
||||
- 27017:27017
|
||||
ifeed:
|
||||
build:
|
||||
context: ../components/i_feed
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- rabbitmq
|
||||
orchestration:
|
||||
build:
|
||||
context: ../components/orchestration
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- rabbitmq
|
||||
eventstore:
|
||||
build:
|
||||
context: ../components/event_store/service
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- 5000
|
||||
- 5001
|
||||
ports:
|
||||
- 5001:5001
|
||||
depends_on:
|
||||
- redis
|
||||
- rabbitmq
|
||||
@ -45,16 +47,30 @@ services:
|
||||
context: ../components/entitiy_ident/entity_ident_service
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- 5000
|
||||
- 5002
|
||||
ports:
|
||||
- 5002:5002
|
||||
depends_on:
|
||||
- mongo
|
||||
orchestration:
|
||||
build:
|
||||
context: ../components/orchestration
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- rabbitmq
|
||||
expose:
|
||||
- 5003
|
||||
ports:
|
||||
- 5003:5003
|
||||
xway:
|
||||
build:
|
||||
context: ../components/x_way
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- 5000
|
||||
- 5004
|
||||
ports:
|
||||
- 5004:5004
|
||||
depends_on:
|
||||
- entity_ident
|
||||
- entityident
|
||||
- orchestration
|
||||
- eventstore
|
||||
Loading…
x
Reference in New Issue
Block a user