<commit_before>#
# RAGE WP2 server-side infrastructure
# This version requires the use of 
#   docker v1.9+
#   docker-compose v1.5+, running with --x-experimental-networking
#
version: '2'

services:
    # A fast in-memory store
    #     saves data to ./data/redis
    redis:
        image: redis:3.0
        container_name: "redis"
        volumes:
            - ./data/redis:/data

    # A scalable cache
    #     saves data to ./data/mongo
    mongo:
        image: mongo:3.0
        container_name: "mongo"
        volumes:
            - ./data/mongo:/data/db

    # Full-text search & analytics DB
    #     saves data to ./data/elastic
    elastic:
        image: eucm/elasticsearch
        container_name: "elastic"
        volumes:
            - ./data/elastic:/usr/share/elasticsearch/data
        ports: 
            - "9217:9217"
            - "9317:9317"

    # Full-text search & analytics DB
    #     saves data to ./data/elastic5
    elastic5:
        image: elasticsearch:5.0.0-alpha5
        container_name: "elastic5"
        environment:
            - ES_JAVA_OPTS=-Xms2g -Xmx2g
        volumes:
            - ./data/elastic5:/usr/share/elasticsearch/data
        ports: 
            - "9200:9200"
            - "9300:9300"

    # Kibana 5.0.0-alpha5
    kibana:
        image: eucm/kibana:5.0.0
        container_name: "kibana"
        environment:
            - ELASTICSEARCH_URL=http://elastic5:9200
            - SIGNUP_APP=true
            - A2_API_PATH=http://a2:3000/api/
            - MY_HOST=http://kibana:5601
            - KIBANA_BASE_PATH=/api/proxy/kibana
            - KIBANA_A2ADMINPASSWORD=${ROOT_PASS}
            - TILEMAP_MAX_ZOOM=18
            - TILEMAP_URL=http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
        volumes:
            - kibana-data:/usr/share/kibana/optimize/
        ports: 
            - "5601:5601"

    # Kafka (A scalable queue) + Zookeeper (Distributed conf. service)
    # as of 2016.10 -- kafka:0.10.0.1, zookeeper:3.4.5+dfsg-2
    kzk:
        image: eucm/kzk:0.10.0.1
        container_name: "kzk"
        environment:
            - ADVERTISED_HOST=kzk
            - ADVERTISED_PORT=9092
        ports: 
            - "2181:2181"
            - "9092:9092"

    # nimbus: supervises everything; talks to zookeeper
    # in e-ucm/dockerized-storm -- storm:1.0.2
    #    requires: kzk
    nimbus:
        image: eucm/storm-nimbus:1.0.2
        container_name: "nimbus"
        environment:
            - KZK_PORT_2181_TCP_ADDR=kzk
            - NIMBUS_PORT_6627_TCP_ADDR=nimbus
            - UI_PORT_8081_TCP_ADDR=ui
        ports:
            - "6627:6627"

    # ui: allows access to logs
    # in e-ucm/dockerized-storm -- storm:1.0.2
    #    requires: nimbus, kzk
    ui:
        image: eucm/storm-ui:1.0.2
        container_name: "ui"
        environment:
            - KZK_PORT_2181_TCP_ADDR=kzk
            - NIMBUS_PORT_6627_TCP_ADDR=nimbus
            - UI_PORT_8081_TCP_ADDR=ui
        ports: 
            - "8081:8081"

    # supervisor: supervises actual workers
    # in e-ucm/dockerized-storm -- storm:1.0.2
    #   requires: nimbus, kzk, mongo
    supervisor:
        image: eucm/storm-supervisor:1.0.2
        container_name: "supervisor"
        environment:
            - KZK_PORT_2181_TCP_ADDR=kzk
            - NIMBUS_PORT_6627_TCP_ADDR=nimbus
            - UI_PORT_8081_TCP_ADDR=ui

    # OpenLRS, an open LRS that speaks xAPI
    #   requires: elastic, redis
    lrs:
        image: eucm/openlrs
        container_name: "lrs"
        environment:
            - REDIS_PORT_6379_TCP_ADDR=redis
            - ELASTIC_PORT_9300_TCP=tcp://elastic:9317
        ports:
            - "8180:8080"

    # Authentication & Authorization
    # (part of SDA asset: Sever-side Dashboard & Analytics)
    #   requires: redis, mongo
    a2:
        image: eucm/a2:1.1.2
        container_name: "a2"
        environment:
            - REDIS_PORT=tcp://redis:6379
            - MONGO_PORT=tcp://mongo:27017
            - A2_ROOTPASSWORD=${ROOT_<PASSWORD>}
        ports: 
            - "3000:3000"

    # Generates RealTime analytics jar, used in Analytics Backend
    realtime:
        image: eucm/rage-analytics-realtime:1.3.1

    # Analytics Backend
    # (SISA asset: Server-side Interaction Storage & Analytics)
    #   requires: a2, kzk, lrs, mongo, nimbus
    back:
        image: eucm/rage-analytics-backend:1.4.3
        container_name: "back"
        volumes_from:
            - realtime
            - nimbus
        environment:
            - MY_HOST=back
            - A2_PORT=tcp://a2:3000
            - KZK_PORT=tcp://kzk:2181
            - LRS_PORT=tcp://lrs:8080<commit_msg>Update back to 1.4.4<commit_after>#
# RAGE WP2 server-side infrastructure
# This version requires the use of 
#   docker v1.9+
#   docker-compose v1.5+, running with --x-experimental-networking
#
version: '2'

services:
    # A fast in-memory store
    #     saves data to ./data/redis
    redis:
        image: redis:3.0
        container_name: "redis"
        volumes:
            - ./data/redis:/data

    # A scalable cache
    #     saves data to ./data/mongo
    mongo:
        image: mongo:3.0
        container_name: "mongo"
        volumes:
            - ./data/mongo:/data/db

    # Full-text search & analytics DB
    #     saves data to ./data/elastic
    elastic:
        image: eucm/elasticsearch
        container_name: "elastic"
        volumes:
            - ./data/elastic:/usr/share/elasticsearch/data
        ports: 
            - "9217:9217"
            - "9317:9317"

    # Full-text search & analytics DB
    #     saves data to ./data/elastic5
    elastic5:
        image: elasticsearch:5.0.0-alpha5
        container_name: "elastic5"
        environment:
            - ES_JAVA_OPTS=-Xms2g -Xmx2g
        volumes:
            - ./data/elastic5:/usr/share/elasticsearch/data
        ports: 
            - "9200:9200"
            - "9300:9300"

    # Kibana 5.0.0-alpha5
    kibana:
        image: eucm/kibana:5.0.0
        container_name: "kibana"
        environment:
            - ELASTICSEARCH_URL=http://elastic5:9200
            - SIGNUP_APP=true
            - A2_API_PATH=http://a2:3000/api/
            - MY_HOST=http://kibana:5601
            - KIBANA_BASE_PATH=/api/proxy/kibana
            - KIBANA_A2ADMINPASSWORD=${ROOT_PASS}
            - TILEMAP_MAX_ZOOM=18
            - TILEMAP_URL=http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
        volumes:
            - kibana-data:/usr/share/kibana/optimize/
        ports: 
            - "5601:5601"

    # Kafka (A scalable queue) + Zookeeper (Distributed conf. service)
    # as of 2016.10 -- kafka:0.10.0.1, zookeeper:3.4.5+dfsg-2
    kzk:
        image: eucm/kzk:0.10.0.1
        container_name: "kzk"
        environment:
            - ADVERTISED_HOST=kzk
            - ADVERTISED_PORT=9092
        ports: 
            - "2181:2181"
            - "9092:9092"

    # nimbus: supervises everything; talks to zookeeper
    # in e-ucm/dockerized-storm -- storm:1.0.2
    #    requires: kzk
    nimbus:
        image: eucm/storm-nimbus:1.0.2
        container_name: "nimbus"
        environment:
            - KZK_PORT_2181_TCP_ADDR=kzk
            - NIMBUS_PORT_6627_TCP_ADDR=nimbus
            - UI_PORT_8081_TCP_ADDR=ui
        ports:
            - "6627:6627"

    # ui: allows access to logs
    # in e-ucm/dockerized-storm -- storm:1.0.2
    #    requires: nimbus, kzk
    ui:
        image: eucm/storm-ui:1.0.2
        container_name: "ui"
        environment:
            - KZK_PORT_2181_TCP_ADDR=kzk
            - NIMBUS_PORT_6627_TCP_ADDR=nimbus
            - UI_PORT_8081_TCP_ADDR=ui
        ports: 
            - "8081:8081"

    # supervisor: supervises actual workers
    # in e-ucm/dockerized-storm -- storm:1.0.2
    #   requires: nimbus, kzk, mongo
    supervisor:
        image: eucm/storm-supervisor:1.0.2
        container_name: "supervisor"
        environment:
            - KZK_PORT_2181_TCP_ADDR=kzk
            - NIMBUS_PORT_6627_TCP_ADDR=nimbus
            - UI_PORT_8081_TCP_ADDR=ui

    # OpenLRS, an open LRS that speaks xAPI
    #   requires: elastic, redis
    lrs:
        image: eucm/openlrs
        container_name: "lrs"
        environment:
            - REDIS_PORT_6379_TCP_ADDR=redis
            - ELASTIC_PORT_9300_TCP=tcp://elastic:9317
        ports:
            - "8180:8080"

    # Authentication & Authorization
    # (part of SDA asset: Sever-side Dashboard & Analytics)
    #   requires: redis, mongo
    a2:
        image: eucm/a2:1.1.2
        container_name: "a2"
        environment:
            - REDIS_PORT=tcp://redis:6379
            - MONGO_PORT=tcp://mongo:27017
            - A2_ROOTPASSWORD=${<PASSWORD>}
        ports: 
            - "3000:3000"

    # Generates RealTime analytics jar, used in Analytics Backend
    realtime:
        image: eucm/rage-analytics-realtime:1.3.1

    # Analytics Backend
    # (SISA asset: Server-side Interaction Storage & Analytics)
    #   requires: a2, kzk, lrs, mongo, nimbus
    back:
        image: eucm/rage-analytics-backend:1.4.4
        container_name: "back"
        volumes_from:
            - realtime
            - nimbus
        environment:
            - MY_HOST=back
            - A2_PORT=tcp://a2:3000
            - KZK_PORT=tcp://kzk:2181
            - LRS_PORT=tcp://lrs:8080
{'fraction_non_alphanumeric': 0.10587226746678097, 'fraction_numerical': 0.0560437205315045, 'mean_word_length': 1.6680960548885078, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1731467', 'n_tokens_mistral': 3565, 'n_tokens_neox': 3267, 'n_words': 558}