1 Star 0 Fork 0

Keven/microservice-mallmanagement

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-swarm.yml 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
Keven 提交于 2019-06-24 08:57 . init
version: "3"
services:
mysql:
image: mysql:5.6
restart: on-failure
ports:
- 3306:3306
volumes:
- microservice-mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: microservice_mallmanagement
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
eureka-server:
image: 192.168.78.132:5000/microservice-eureka-server:0.0.1-SNAPSHOT
restart: on-failure
ports:
- 8761:8761
deploy:
replicas: 1
restart_policy:
condition: on-failure
gateway-zuul:
image: 192.168.78.132:5000/microservice-gateway-zuul:0.0.1-SNAPSHOT
restart: on-failure
ports:
- 8050:8050
depends_on:
- eureka-server
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
order-service:
image: 192.168.78.132:5000/microservice-orderservice:0.0.1-SNAPSHOT
restart: on-failure
ports:
- 7900:7900
depends_on:
- mysql
- eureka-server
deploy:
replicas: 2
restart_policy:
condition: on-failure
user-service:
image: 192.168.78.132:5000/microservice-userservice:0.0.1-SNAPSHOT
restart: on-failure
ports:
- 8030:8030
depends_on:
- mysql
- eureka-server
deploy:
replicas: 2
restart_policy:
condition: on-failure
visualizer:
image: dockersamples/visualizer:stable
ports:
- 8081:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
placement:
constraints: [node.role == manager]
networks:
default:
external:
name: microservice_net
volumes:
microservice-mysql:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/KevenMa/microservice-mallmanagement.git
git@gitee.com:KevenMa/microservice-mallmanagement.git
KevenMa
microservice-mallmanagement
microservice-mallmanagement
master

搜索帮助