version: '2' services: frontend: image: "winccoa/frontend" hostname: frontend ports: - '5558:5558' environment: langs: de_AT.utf8 data: scada.rocworks.local event: scada.rocworks.local num: 99 backend-kafka: image: "winccoa/backend-kafka" hostname: backend-kafka depends_on: - kafka - frontend environment: langs: de_AT.utf8 data: scada.rocworks.local event: scada.rocworks.local broker: kafka:29092 topic: Scada num: 100 driver-kafka: image: "winccoa/driver-kafka" hostname: driver-kafka depends_on: - kafka - frontend environment: langs: de_AT.utf8 data: scada.rocworks.local event: scada.rocworks.local broker: kafka:29092 topic: RESULT num: 4 zookeeper: image: "confluentinc/cp-zookeeper:latest" hostname: zookeeper ports: - '32181:32181' environment: ZOOKEEPER_CLIENT_PORT: 32181 ZOOKEEPER_TICK_TIME: 2000 extra_hosts: - "moby:127.0.0.1" kafka: image: "confluentinc/cp-enterprise-kafka:latest" hostname: kafka ports: - '9092:9092' - '29092:29092' depends_on: - zookeeper environment: KAFKA_BROKER_ID: 1 KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true" KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka:29092 CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:32181 CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1 CONFLUENT_METRICS_ENABLE: 'true' CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous' extra_hosts: - "moby:127.0.0.1" schema-registry: image: "confluentinc/cp-schema-registry:latest" hostname: schema-registry depends_on: - zookeeper - kafka ports: - '8081:8081' environment: SCHEMA_REGISTRY_HOST_NAME: schema-registry SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:32181 extra_hosts: - "moby:127.0.0.1" # Runs the Kafka KSQL application ksql-cli: image: "confluentinc/ksql-cli:latest" hostname: ksql-cli depends_on: - kafka - schema-registry command: "perl -e 'while(1){ sleep 99999 }'" environment: KSQL_CONFIG_DIR: "/etc/ksql" KSQL_LOG4J_OPTS: "-Dlog4j.configuration=file:/etc/ksql/log4j-rolling.properties" STREAMS_BOOTSTRAP_SERVERS: kafka:29092 STREAMS_SCHEMA_REGISTRY_HOST: schema-registry STREAMS_SCHEMA_REGISTRY_PORT: 8081 extra_hosts: - "moby:127.0.0.1"