commit d0656acb6afd4a27e95a6af295204019c4552dd1 Author: suguo.yao Date: Sat Aug 24 13:25:58 2024 +0800 consul diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f207cc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +consul_data/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..856a012 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + consul: + image: consul:1.15.4 + restart: always + command: agent -dev -client=0.0.0.0 -node=consul01 -datacenter=yy -ui + volumes: + - ./consul_data:/consul/data + ports: + - "8500:8500" diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e172ce9 --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +# 开发环境部署脚本