aboutsummaryrefslogtreecommitdiffstats
path: root/docker_files/__docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker_files/__docker-compose.yml')
-rw-r--r--docker_files/__docker-compose.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/docker_files/__docker-compose.yml b/docker_files/__docker-compose.yml
new file mode 100644
index 0000000..d9bbcd2
--- /dev/null
+++ b/docker_files/__docker-compose.yml
@@ -0,0 +1,50 @@
+version: '2'
+services:
+ zookeeper:
+ image: wurstmeister/zookeeper
+ ports:
+ - "2181:2181"
+ volumes:
+ - ./data-zookeeper:/opt/zookeeper-3.4.9/data
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+
+ kafka:
+ build: .
+ ports:
+ - "9092:9092"
+ environment:
+ KAFKA_ADVERTISED_HOST_NAME: {{ ip.docker0 }}
+ KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+ KAFKA_BROKER_ID: 1
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+ - ./data-kafka:/kafka
+ - ./start-kafka.sh:/start-kafka.sh
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+
+ dmaap:
+ image: attos/dmaap
+ #image: ecomp-nexus:51212/dmaapnew1
+ ports:
+ - "3904:3904"
+ - "3905:3905"
+ volumes:
+ - ./MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
+ - ./cadi.properties:/appl/dmaapMR1/etc/cadi.properties
+ - ./mykey:/appl/dmaapMR1/etc/keyfile
+ depends_on:
+ - zookeeper
+ - kafka
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"