# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # 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: shardingsphere-example-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: shardingsphere-example-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'