| # 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. |
| |
| services: |
| etcd1: |
| image: gcr.io/etcd-development/etcd:v3.6.4 |
| ports: |
| - "23790:2379" |
| - "23800:2380" |
| command: |
| - /usr/local/bin/etcd |
| - --name=etcd1 |
| - --listen-client-urls=http://0.0.0.0:2379 |
| - --advertise-client-urls=http://etcd1:2379 |
| - --listen-peer-urls=http://0.0.0.0:2380 |
| - --initial-advertise-peer-urls=http://etcd1:2380 |
| - --initial-cluster=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
| - --initial-cluster-token=etcd-cluster |
| - --initial-cluster-state=new |
| - --max-request-bytes=10485760 |
| etcd2: |
| image: gcr.io/etcd-development/etcd:v3.6.4 |
| ports: |
| - "23791:2379" |
| - "23801:2380" |
| command: |
| - /usr/local/bin/etcd |
| - --name=etcd2 |
| - --listen-client-urls=http://0.0.0.0:2379 |
| - --advertise-client-urls=http://etcd2:2379 |
| - --listen-peer-urls=http://0.0.0.0:2380 |
| - --initial-advertise-peer-urls=http://etcd2:2380 |
| - --initial-cluster=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
| - --initial-cluster-token=etcd-cluster |
| - --initial-cluster-state=new |
| - --max-request-bytes=10485760 |
| etcd3: |
| image: gcr.io/etcd-development/etcd:v3.6.4 |
| ports: |
| - "23792:2379" |
| - "23802:2380" |
| command: |
| - /usr/local/bin/etcd |
| - --name=etcd3 |
| - --listen-client-urls=http://0.0.0.0:2379 |
| - --advertise-client-urls=http://etcd3:2379 |
| - --listen-peer-urls=http://0.0.0.0:2380 |
| - --initial-advertise-peer-urls=http://etcd3:2380 |
| - --initial-cluster=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
| - --initial-cluster-token=etcd-cluster |
| - --initial-cluster-state=new |
| - --max-request-bytes=10485760 |