Unverified Commit e0537279 authored by zhaojun's avatar zhaojun Committed by GitHub
Browse files

Merge pull request #120 from taojintianxia/enhance-sharding-proxy-example

Add: #117 add orchestration example infrastructure
parents 8c49fa05 8b5b38db
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
version: '3'
services:
  zookeeper:
    ## get more versions of zookeeper here : https://hub.docker.com/_/zookeeper?tab=tags
    image: "zookeeper:3.4"
    ports:
      - "2181:2181"
    container_name: sharding-sphere-zookeeper

  etcd:
    ## get more versions of etcd here  : https://quay.io/repository/coreos/etcd?tag=latest&tab=tags
    image: "quay.io/coreos/etcd:v3.3.12"
    ports:
      - "2379:2379"
      - "2380:2380"
      - "4001:4001"
    container_name: sharding-sphere-etcd
    entrypoint: /usr/local/bin/etcd
    command:
      - '--advertise-client-urls=http://0.0.0.0:2379'
      - '--listen-client-urls=http://0.0.0.0:2379'
      - '--initial-advertise-peer-urls=http://0.0.0.0:2380'
      - '--listen-peer-urls=http://0.0.0.0:2380'
      - '--initial-cluster'
      - 'default=http://0.0.0.0:2380'
+3 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash

docker-compose up -d
+3 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash

docker-compose down