美文网首页
docker-compose etcd

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