20 lines
649 B
YAML
20 lines
649 B
YAML
version: "3.9"
|
|
services:
|
|
etcd:
|
|
ports: ["2379:2379","2380:2380"]
|
|
image: quay.io/coreos/etcd:v3.5.4
|
|
command: [
|
|
"etcd",
|
|
"--auto-compaction-mode=revision",
|
|
"--auto-compaction-retention=1",
|
|
"--name=etcd-cluster",
|
|
"--initial-cluster-state=new",
|
|
"--initial-cluster-token=etcd-cluster-1",
|
|
"--initial-cluster=etcd-cluster=http://etcd:2380",
|
|
"--initial-advertise-peer-urls=http://etcd:2380",
|
|
"--advertise-client-urls=http://etcd:2379",
|
|
"--listen-client-urls=http://0.0.0.0:2379",
|
|
"--listen-peer-urls=http://0.0.0.0:2380",
|
|
"--quota-backend-bytes=134217728" # 128 MB
|
|
]
|