1 Star 9 Fork 2

ken / xconsumer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
compose.yml 611 Bytes
一键复制 编辑 原始数据 按行查看 历史
y80x86ol 提交于 2021-07-20 20:35 . 完善readme
#
# 使用compose需要修改app.toml文件中的zoookeeper的host为"xconsumer-zookeeper"
#
version: "3"
networks:
web_net:
driver: bridge
services:
go:
image: "golang:1.16"
container_name: "xconsumer-compose"
networks:
web_net:
working_dir: /www
volumes:
- .:/www
expose:
- "8000"
ports:
- "8000:8000"
command:
- /bin/bash
- -c
- |
go run main.go
zookeeper:
image: "zookeeper:latest"
container_name: "xconsumer-zookeeper"
networks:
web_net:
expose:
- "2181"
ports:
- "2181:2181"
Go
1
https://gitee.com/ken.yang/xconsumer.git
git@gitee.com:ken.yang/xconsumer.git
ken.yang
xconsumer
xconsumer
master

搜索帮助