docker-compose etcd
作者:
夜空最亮的9星 | 来源:发表于
2023-11-10 08:59 被阅读0次version: "3.8"
networks:
etcd_network:
name: etcd_network
services:
node1:
image: quay.io/coreos/etcd:v3.5.10
ports:
- "2379:2379"
volumes:
- /etc/localtime:/etc/localtime
- ./data:/var/etcd
command: >
/usr/local/bin/etcd
--name s1
--data-dir /etcd-data
--listen-client-urls http://0.0.0.0:2379
--advertise-client-urls http://0.0.0.0:2379
--listen-peer-urls http://0.0.0.0:2380
--initial-advertise-peer-urls http://0.0.0.0:2380
--initial-cluster s1=http://0.0.0.0:2380
--initial-cluster-token tkn
--initial-cluster-state new
--log-level info
--logger zap
--log-outputs stderr
networks:
- etcd_network
本文标题:docker-compose etcd
本文链接:https://www.haomeiwen.com/subject/rhfhwdtx.html
网友评论