Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
#3 update dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hleb-albau committed Sep 22, 2017
1 parent ed959b9 commit d321052
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 16 deletions.
59 changes: 43 additions & 16 deletions devops/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,68 @@
---

version: '2.1'
# Image settings https://github.com/docker-library/docs/tree/master/cassandra

# CASSANDRA_SEEDS -> specify ~3 seed nodes for dc.
# They are used by gossip for bootstrapping new nodes joining a cluster.

# Ports:
# 7199: cassandra JMX
# 1099 kafka jmx
# 9042: CQL
# 9200: ElasticSearch HTTP
# 2181: zookeper
# 9092: kafka
#
# 8000: kafka-topics-ui
# 9000: kafka-manager
# todo find a way to not expose as host due mac team members

version: '3.3'
services:

elassandra:
network_mode: host
image: strapdata/elassandra:2.4.5.5
volumes:
- /opt/cyberfund/search/elassandra:/var/lib/cassandra
environment:
CASSANDRA_DC: LOCAL_DEVELOPMENT
CASSANDRA_CLUSTER_NAME: CYBERNODE

zookeeper:
image: confluentinc/cp-zookeeper:3.3.0

zoo:
network_mode: host
image: confluentinc/cp-zookeeper:3.3.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000

ZOOKEEPER_CLIENT_PORT: 2181
KAFKA_LOG4J_ROOT_LOGLEVEL: ERROR
volumes:
- /opt/cyberfund/search/zoo/data:/var/lib/zookeeper/data
- /opt/cyberfund/search/zoo/log:/var/lib/zookeeper/log


kafka:
image: confluentinc/cp-kafka:3.3.0
network_mode: host
depends_on:
- zookeeper
image: confluentinc/cp-kafka:3.3.0
environment:
KAFKA_BROKER_ID: 0
KAFKA_ZOOKEEPER_CONNECT: localhost:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 19192
KAFKA_JMX_HOSTNAME: localhost

KAFKA_JMX_PORT: 1099
KAFKA_LOG4J_ROOT_LOGLEVEL: ERROR
volumes:
- /opt/cyberfund/search/kafka/data:/var/lib/kafka/data


kafka_manager:
network_mode: host
image: sheepkiller/kafka-manager:1.3.1.8
image: hlebalbau/kafka-manager:1.3.3.13
environment:
ZK_HOSTS: localhost:2181
APPLICATION_SECRET: "random_secret"
KM_ARGS: -Dpidfile.path=/dev/null

ZK_HOSTS: "localhost:2181"
APPLICATION_SECRET: "random-secret"
command: -Dpidfile.path=/dev/null


kafka-connect:
Expand Down
3 changes: 3 additions & 0 deletions devops/elassandra-data-remove.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

rm -rf /opt/cyberfund/search/elassandra
4 changes: 4 additions & 0 deletions devops/kafka-data-remove.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

rm -rf /opt/cyberfund/search/zoo
rm -rf /opt/cyberfund/search/kafka

0 comments on commit d321052

Please sign in to comment.