Skip to content
Snippets Groups Projects
Commit 4a5c2a4d authored by Sören Henning's avatar Sören Henning
Browse files

Update docker compose demo scripts for new workload generator

parent ed2d1ae1
No related branches found
No related tags found
No related merge requests found
version: '2' version: '2'
services: services:
zookeeper: zookeeper:
image: wurstmeister/zookeeper image: confluentinc/cp-zookeeper
ports: expose:
- "2181:2181" - "9092"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka: kafka:
image: wurstmeister/kafka image: wurstmeister/kafka
ports:
- "9092:9092"
expose: expose:
- "9092" - "9092"
#ports:
# - 19092:19092
environment: environment:
KAFKA_ADVERTISED_HOST_NAME: kafka #172.17.0.1 # Replace with docker network KAFKA_LISTENERS: PLAINTEXT://:9092,CONNECTIONS_FROM_HOST://:19092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://localhost:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000
KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1,dayofweek:3:1,hourofday:3:1,hourofweek:3:1" KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1"
schema-registry:
image: confluentinc/cp-schema-registry:5.3.1
depends_on:
- zookeeper
- kafka
expose:
- "8081"
ports:
- 8081:8081
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
uc-app: uc-app:
image: theodolite/theodolite-uc1-kstreams-app:latest image: theodolite/theodolite-uc1-kstreams-app:latest
depends_on:
- schema-registry
- kafka
environment: environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
uc-wg: uc-wg:
image: theodolite/theodolite-uc1-workload-generator:latest image: theodolite/theodolite-uc1-workload-generator:latest
depends_on:
- schema-registry
- kafka
- zookeeper
environment: environment:
ZK_HOST: zookeeper
ZK_PORT: 2181
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_URL: http://schema-registry:8081
INSTANCES: 1
NUM_SENSORS: 1 NUM_SENSORS: 1
version: '2' version: '2'
services: services:
zookeeper: zookeeper:
image: wurstmeister/zookeeper image: confluentinc/cp-zookeeper
ports: expose:
- "2181:2181" - "9092"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka: kafka:
image: wurstmeister/kafka image: wurstmeister/kafka
ports:
- "9092:9092"
expose: expose:
- "9092" - "9092"
ports:
- 19092:19092
environment: environment:
KAFKA_ADVERTISED_HOST_NAME: kafka #172.17.0.1 # Replace with docker network KAFKA_LISTENERS: PLAINTEXT://:9092,CONNECTIONS_FROM_HOST://:19092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://localhost:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000
KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1,dayofweek:3:1,hourofday:3:1,hourofweek:3:1" KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1"
schema-registry:
image: confluentinc/cp-schema-registry:5.3.1
depends_on:
- zookeeper
- kafka
expose:
- "8081"
ports:
- 8081:8081
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
uc-app: uc-app:
image: theodolite/theodolite-uc2-kstreams-app:latest image: theodolite/theodolite-uc2-kstreams-app:latest
depends_on:
- schema-registry
- kafka
environment: environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
uc-wg: uc-wg:
image: theodolite/theodolite-uc2-workload-generator:latest image: theodolite/theodolite-uc2-workload-generator:latest
depends_on:
- schema-registry
- kafka
- zookeeper
environment: environment:
ZK_HOST: zookeeper
ZK_PORT: 2181
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_URL: http://schema-registry:8081
INSTANCES: 1
NUM_SENSORS: 1 NUM_SENSORS: 1
\ No newline at end of file
version: '2' version: '2'
services: services:
zookeeper: zookeeper:
image: wurstmeister/zookeeper #image: wurstmeister/zookeeper
image: confluentinc/cp-zookeeper
ports: ports:
- "2181:2181" - "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka: kafka:
image: wurstmeister/kafka image: wurstmeister/kafka
ports: ports:
- "9092:9092" - "9092:9092"
expose: expose:
- "9092" - "9092"
ports:
- 19092:19092
environment: environment:
KAFKA_ADVERTISED_HOST_NAME: kafka #172.17.0.1 # Replace with docker network KAFKA_LISTENERS: PLAINTEXT://:9092,CONNECTIONS_FROM_HOST://:19092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://localhost:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000
KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1,dayofweek:3:1,hourofday:3:1,hourofweek:3:1" KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1"
schema-registry:
image: confluentinc/cp-schema-registry:5.3.1
depends_on:
- zookeeper
- kafka
ports:
- "8081:8081"
expose:
- "8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
uc-app: uc-app:
image: theodolite/theodolite-uc3-kstreams-app:latest image: theodolite/theodolite-uc3-kstreams-app:latest
depends_on:
- schema-registry
- kafka
environment: environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_URL: http://schema-registry:8081
KAFKA_WINDOW_DURATION_MINUTES: 60 KAFKA_WINDOW_DURATION_MINUTES: 60
uc-wg: uc-wg:
image: theodolite/theodolite-uc3-workload-generator:latest image: theodolite/theodolite-uc3-workload-generator:latest
depends_on:
- schema-registry
- kafka
- zookeeper
environment: environment:
ZK_HOST: zookeeper
ZK_PORT: 2181
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_URL: http://schema-registry:8081
INSTANCES: 1
NUM_SENSORS: 1 NUM_SENSORS: 1
\ No newline at end of file
version: '2' version: '2'
services: services:
zookeeper: zookeeper:
image: wurstmeister/zookeeper #image: wurstmeister/zookeeper
image: confluentinc/cp-zookeeper
ports: ports:
- "2181:2181" - "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka: kafka:
image: wurstmeister/kafka image: wurstmeister/kafka
ports:
- "9092:9092"
expose: expose:
- "9092" - "9092"
ports:
- 19092:19092
environment: environment:
KAFKA_ADVERTISED_HOST_NAME: kafka #172.17.0.1 # Replace with docker network KAFKA_LISTENERS: PLAINTEXT://:9092,CONNECTIONS_FROM_HOST://:19092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://localhost:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000
KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1,dayofweek:3:1,hourofday:3:1,hourofweek:3:1" KAFKA_CREATE_TOPICS: "input:3:1,output:3:1,configuration:3:1,aggregation-feedback:3:1"
schema-registry: schema-registry:
image: confluentinc/cp-schema-registry:5.3.1 image: confluentinc/cp-schema-registry:5.3.1
depends_on: depends_on:
- zookeeper - zookeeper
- kafka - kafka
ports:
- "8081:8081"
expose: expose:
- "8081" - "8081"
environment: environment:
...@@ -27,10 +34,22 @@ services: ...@@ -27,10 +34,22 @@ services:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181' SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
uc-app: uc-app:
image: theodolite/theodolite-uc4-kstreams-app:latest image: theodolite/theodolite-uc4-kstreams-app:latest
depends_on:
- schema-registry
- kafka
environment: environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_URL: http://schema-registry:8081 SCHEMA_REGISTRY_URL: http://schema-registry:8081
uc-wg: uc-wg:
image: theodolite/theodolite-uc4-workload-generator:latest image: theodolite/theodolite-uc4-workload-generator:latest
depends_on:
- schema-registry
- kafka
- zookeeper
environment: environment:
ZK_HOST: zookeeper
ZK_PORT: 2181
KAFKA_BOOTSTRAP_SERVERS: kafka:9092 KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_URL: http://schema-registry:8081
INSTANCES: 1
NUM_SENSORS: 100
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment