|
17 | 17 |
|
18 | 18 | services: |
19 | 19 | etcd1: |
20 | | - image: bitnami/etcd:latest |
| 20 | + image: gcr.io/etcd-development/etcd:v3.6.4 |
21 | 21 | ports: |
22 | 22 | - "23790:2379" |
23 | 23 | - "23800:2380" |
24 | | - environment: |
25 | | - ALLOW_NONE_AUTHENTICATION: "yes" |
26 | | - ETCD_NAME: etcd1 |
27 | | - ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd1:2380 |
28 | | - ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380 |
29 | | - ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379 |
30 | | - ETCD_ADVERTISE_CLIENT_URLS: http://etcd1:2379 |
31 | | - ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster |
32 | | - ETCD_INITIAL_CLUSTER: etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
33 | | - ETCD_INITIAL_CLUSTER_STATE: new |
34 | | - ETCD_MAX_REQUEST_BYTES: 10485760 |
| 24 | + command: |
| 25 | + - /usr/local/bin/etcd |
| 26 | + - --name=etcd1 |
| 27 | + - --listen-client-urls=http://0.0.0.0:2379 |
| 28 | + - --advertise-client-urls=http://etcd1:2379 |
| 29 | + - --listen-peer-urls=http://0.0.0.0:2380 |
| 30 | + - --initial-advertise-peer-urls=http://etcd1:2380 |
| 31 | + - --initial-cluster=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
| 32 | + - --initial-cluster-token=etcd-cluster |
| 33 | + - --initial-cluster-state=new |
| 34 | + - --max-request-bytes=10485760 |
35 | 35 | etcd2: |
36 | | - image: bitnami/etcd:latest |
| 36 | + image: gcr.io/etcd-development/etcd:v3.6.4 |
37 | 37 | ports: |
38 | 38 | - "23791:2379" |
39 | 39 | - "23801:2380" |
40 | | - environment: |
41 | | - ALLOW_NONE_AUTHENTICATION: "yes" |
42 | | - ETCD_NAME: etcd2 |
43 | | - ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd2:2380 |
44 | | - ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380 |
45 | | - ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379 |
46 | | - ETCD_ADVERTISE_CLIENT_URLS: http://etcd2:2379 |
47 | | - ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster |
48 | | - ETCD_INITIAL_CLUSTER: etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
49 | | - ETCD_INITIAL_CLUSTER_STATE: new |
50 | | - ETCD_MAX_REQUEST_BYTES: 10485760 |
| 40 | + command: |
| 41 | + - /usr/local/bin/etcd |
| 42 | + - --name=etcd2 |
| 43 | + - --listen-client-urls=http://0.0.0.0:2379 |
| 44 | + - --advertise-client-urls=http://etcd2:2379 |
| 45 | + - --listen-peer-urls=http://0.0.0.0:2380 |
| 46 | + - --initial-advertise-peer-urls=http://etcd2:2380 |
| 47 | + - --initial-cluster=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
| 48 | + - --initial-cluster-token=etcd-cluster |
| 49 | + - --initial-cluster-state=new |
| 50 | + - --max-request-bytes=10485760 |
51 | 51 | etcd3: |
52 | | - image: bitnami/etcd:latest |
| 52 | + image: gcr.io/etcd-development/etcd:v3.6.4 |
53 | 53 | ports: |
54 | 54 | - "23792:2379" |
55 | 55 | - "23802:2380" |
56 | | - environment: |
57 | | - ALLOW_NONE_AUTHENTICATION: "yes" |
58 | | - ETCD_NAME: etcd3 |
59 | | - ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd3:2380 |
60 | | - ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380 |
61 | | - ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379 |
62 | | - ETCD_ADVERTISE_CLIENT_URLS: http://etcd3:2379 |
63 | | - ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster |
64 | | - ETCD_INITIAL_CLUSTER: etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
65 | | - ETCD_INITIAL_CLUSTER_STATE: new |
66 | | - ETCD_MAX_REQUEST_BYTES: 10485760 |
| 56 | + command: |
| 57 | + - /usr/local/bin/etcd |
| 58 | + - --name=etcd3 |
| 59 | + - --listen-client-urls=http://0.0.0.0:2379 |
| 60 | + - --advertise-client-urls=http://etcd3:2379 |
| 61 | + - --listen-peer-urls=http://0.0.0.0:2380 |
| 62 | + - --initial-advertise-peer-urls=http://etcd3:2380 |
| 63 | + - --initial-cluster=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380 |
| 64 | + - --initial-cluster-token=etcd-cluster |
| 65 | + - --initial-cluster-state=new |
| 66 | + - --max-request-bytes=10485760 |
0 commit comments