摘要: upstream consul { server 127.0.0.1:8501; server 127.0.0.1:8502; server 127.0.0.1:8503; } server { listen 80; server_name consul.test.com;#服务域名,需要填写你的服务域名 location ... 阅读全文
posted @ 2019-05-12 12:44 王东波 阅读(60) 评论(0) 推荐(0) 编辑
摘要: version: '2.0' services: consul-server1: image: consul:latest hostname: "consul-server1" ports: - "8501:8500" volumes: - ./consul/data1:/consul/data command: "agent ... 阅读全文
posted @ 2019-05-12 12:43 王东波 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1,下载nginx镜像 2,启动 3,创建本地目录 4,复制容器中的配置文件到本地目录 5,启动新容器 命令说明: -p 8082:80: 将容器的 80 端口映射到主机的 8082 端口。 --name runoob-nginx-test-web:将容器命名为 runoob-nginx-test- 阅读全文
posted @ 2019-05-12 12:26 王东波 阅读(121) 评论(0) 推荐(0) 编辑