typhon-project / typhondl

http://www.typhon-project.org
Eclipse Public License 2.0
1 stars 0 forks source link

[Evolution] add Continuous Evolution Analytics to Polystore #55

Closed MarieSaphira closed 4 years ago

MarieSaphira commented 4 years ago

Add the following 4 containers provided by @meuriceloup

services:  
  ...
  evolution-mongo:
    image: mongo:latest
    environment:
      MONGO_INITDB_ROOT_USERNAME: admin
      MONGO_INITDB_ROOT_PASSWORD: admin
      MONGO_INITDB_DATABASE: Analytics
  evolution-java:
    image: meuriceloup/typhon-evolution-analytics-java:latest
    environment:
      WAKEUP_TIME_MS_FREQUENCY: 10000
      KAFKA_CHANNEL_IP: kafka
      KAFKA_CHANNEL_PORT: 9092
      WEBSERVICE_URL: http://typhon-polystore-service:8080/
      WEBSERVICE_USERNAME: admin
      WEBSERVICE_PASSWORD: admin1@
      ANALYTICS_DB_IP: evolution-mongo
      ANALYTICS_DB_PORT: 27017
      ANALYTICS_DB_USER: admin
      ANALYTICS_DB_PWD: admin
      ANALYTICS_DB_NAME: Analytics
    depends_on: 
      - evolution-mongo
      - typhon-polystore-service
      - kafka
  evolution-backend:
    image: meuriceloup/typhon-evolution-analytics-backend:latest
    environment:
      BACKEND_DEPLOYMENT_PORT: 3000
      ANALYTICS_DB_URL: mongodb://evolution-mongo:27017/
      ANALYTICS_DB_NAME: Analytics
      ANALYTICS_DB_USER: admin
      ANALYTICS_DB_PWD: admin
      WEBSERVICE_URL: http://typhon-polystore-service:8080/
      WEBSERVICE_USERNAME: admin
      WEBSERVICE_PASSWORD: admin1@
    depends_on:
      - evolution-mongo
  evolution-frontend:
    image: meuriceloup/typhon-evolution-analytics-client:latest
    environment:
      BACKEND_ENDPOINT: http://evolution-backend:3000
    depends_on:
      - evolution-backend
    ports:
      - 5000:5000
OrfenCLMS commented 4 years ago

@MarieSaphira mongo ports might conflict with the existing polystore-mongo db

MarieSaphira commented 4 years ago

the existing polystore-mongo should not be published, right? the evolution-mongo also doesn't have to be published

OrfenCLMS commented 4 years ago

That is true, if they are not published its fine.

MarieSaphira commented 4 years ago

removed the published ports for evolution-backend and evolution-mongo

meuriceloup commented 4 years ago

Indeed. evolution-java and evolution-backend are the only containers communicating with the evolution-mongo. If these three containers are deployed in the same docker, the evolution-mongo does not require published port