1 Star 0 Fork 35

jokul2010/docker-compose

forked from kancy/docker-compose 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-consul-cluster.yml 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
kancy 提交于 2019-10-31 00:35 . init
version: '3'
services:
# ref: https://blog.csdn.net/qq_24384579/article/details/86480522
consul_server1:
image: consul:latest
container_name: consul_server1
restart: always
command: agent -server -client=0.0.0.0 -bootstrap-expect=3 -node=consul_server1 -config-dir=/home/acl.json
volumes:
- /data/docker_file/consul_cluster/acl-server.json:/home/acl.json
consul_server2:
image: consul:latest
container_name: consul_server2
restart: always
command: agent -server -client=0.0.0.0 -retry-join=consul_server1 -node=consul_server2 -config-dir=/home/acl.json
volumes:
- /data/docker_file/consul_cluster/acl-server.json:/home/acl.json
consul_server3:
image: consul:latest
container_name: consul_server3
restart: always
command: agent -server -client=0.0.0.0 -retry-join=consul_server1 -node=consul_server3 -config-dir=/home/acl.json
volumes:
- /data/docker_file/consul_cluster/acl-server.json:/home/acl.json
consul_client:
image: consul:latest
container_name: consul_client
restart: always
ports:
- 8500:8500
command: agent -client=0.0.0.0 -retry-join=consul_server1 -ui -node=consul_client -config-dir=/home/acl_client.json
volumes:
- /data/docker_file/consul_cluster/acl-client.json:/home/acl_client.json
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jokul2010/docker-compose.git
git@gitee.com:jokul2010/docker-compose.git
jokul2010
docker-compose
docker-compose
master

搜索帮助