代码拉取完成,页面将自动刷新
同步操作将从 GuYiTan/sg-exam 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '2'
services:
# ---------------------------
# consul集群,3个节点
# ---------------------------
consul:
image: consul:1.2.0
container_name: consul
command: consul agent -server -client 0.0.0.0 -ui -bootstrap-expect=3 -data-dir=/consul/data -retry-join=consul2 -retry-join=consul3 -datacenter=blr
restart: always
ports:
- "8300:8300"
- "8400:8400"
- "8500:8500"
- "8600:8600/udp"
networks:
- net
consul2:
image: consul:1.2.0
container_name: consul-2
expose:
- "8500"
- "8600"
command: consul agent -server -data-dir=/consul/data -retry-join=consul -retry-join=consul3 -datacenter=blr
links:
- consul
networks:
- net
consul3:
image: consul:1.2.0
container_name: consul-3
expose:
- "8500"
- "8600"
command: consul agent -server -data-dir=/consul/data -retry-join=consul -retry-join=consul2 -datacenter=blr
links:
- consul
- consul2
networks:
- net
# ---------------------------
# rabbitMq
# ---------------------------
rabbit:
image: rabbitmq:3.6.6-management-alpine
container_name: rabbit-mq
restart: always
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
networks:
- net
# ---------------------------
# Redis
# ---------------------------
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
networks:
- net
# ---------------------------
# 配置中心
# ---------------------------
config-service:
image: registry.cn-hangzhou.aliyuncs.com/spring-microservice-exam/config-service:2.0
container_name: config-service
env_file: docker-compose.env # 从文件中获取配置
restart: always
depends_on:
- consul
- rabbit
- redis
ports:
- "8769:8769"
networks:
- net
networks:
net:
driver: bridge
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。