Git Product home page Git Product logo

docker-zookeeper-2's Introduction

docker-zookeeper

Build

Builds a docker image for Zookeeper.

docker build -t <user>/zookeeper:3.4.8 .

Play with Docker Compose

The docker-compose.yml is as following

version: "2"
services:
  zookeeper1:
      image: 'registry.aliyuncs.com/acs-sample/zookeeper:3.4.8'
      container_name: zookeeper1
      environment:
          - SERVER_ID=1
          - ADDITIONAL_ZOOKEEPER_1=server.1=0.0.0.0:2888:3888
          - ADDITIONAL_ZOOKEEPER_2=server.2=zookeeper2:2888:3888 
          - ADDITIONAL_ZOOKEEPER_3=server.3=zookeeper3:2888:3888
  zookeeper2:
      image: 'registry.aliyuncs.com/acs-sample/zookeeper:3.4.8'
      container_name: zookeeper2
      environment:
          - SERVER_ID=2
          - ADDITIONAL_ZOOKEEPER_1=server.1=zookeeper1:2888:3888
          - ADDITIONAL_ZOOKEEPER_2=server.2=0.0.0.0:2888:3888 
          - ADDITIONAL_ZOOKEEPER_3=server.3=zookeeper3:2888:3888
  zookeeper3:
      image: 'registry.aliyuncs.com/acs-sample/zookeeper:3.4.8'
      container_name: zookeeper3
      environment:
          - SERVER_ID=3
          - ADDITIONAL_ZOOKEEPER_1=server.1=zookeeper1:2888:3888
          - ADDITIONAL_ZOOKEEPER_2=server.2=zookeeper2:2888:3888 
          - ADDITIONAL_ZOOKEEPER_3=server.3=0.0.0.0:2888:3888

Deploy the Zookeeper Cluster with Docker Compose

docker-compose up -d

Check the status of zookeeper cluster

docker-compose log

docker-zookeeper-2's People

Contributors

denverdino avatar jplock avatar makuk66 avatar varju avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.