1 Star 0 Fork 9

Curlson/pigX

forked from 李康123/pigX 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 2.77 KB
一键复制 编辑 原始数据 按行查看 历史
李康123 提交于 2020-09-07 13:37 . 输出日志到elk
version: '3'
services:
pig-mysql:
environment:
MYSQL_ROOT_PASSWORD: root
restart: always
container_name: pig-mysql
image: docker.io/mysql:8.0.20
ports:
- 3307:3306
pig-redis:
image: redis:6.0
ports:
- 6379:6379
restart: always
container_name: pig-redis
hostname: pig-redis
pig-register:
restart: always
ports:
- 8848:8848
container_name: pig-register
hostname: pig-register
image: library/pig-register:2.8.1
#
# pig-gateway:
# build:
# context: ./pig-gateway
# restart: always
# ports:
# - 9999:9999
# container_name: pig-gateway
# hostname: pig-gateway
# image: pig-gateway
#
# pig-auth:
# build:
# context: ./pig-auth
# restart: always
# container_name: pig-auth
# hostname: pig-auth
# image: pig-auth
#
# pig-upms:
# build:
# context: ./pig-upms/pig-upms-biz
# restart: always
# container_name: pig-upms
# hostname: pig-upms
# image: pig-upms
#
# pig-monitor:
# build:
# context: ./pig-visual/pig-monitor
# restart: always
# ports:
# - 5001:5001
# container_name: pig-monitor
# hostname: pig-monitor
# image: pig-monitor
#
# pig-sentinel:
# build:
# context: ./pig-visual/pig-sentinel-dashboard
# restart: always
# image: pig-sentinel
# container_name: pig-sentinel
# ports:
# - 5003:5003
#
# pig-codegen:
# build:
# context: ./pig-visual/pig-codegen
# restart: always
# container_name: pig-codegen
# hostname: pig-codegen
# image: pig-codegen
elasticsearch:
image: elasticsearch:6.4.0
container_name: elasticsearch
environment:
- "cluster.name=elasticsearch" #设置集群名称为elasticsearch
- "discovery.type=single-node" #以单一节点模式启动
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" #设置使用jvm内存大小
volumes:
- /home/datas/elasticsearch/plugins:/usr/share/elasticsearch/plugins #插件文件挂载
- /home/datas/elasticsearch/data:/usr/share/elasticsearch/data #数据文件挂载
ports:
- c:9200
kibana:
image: kibana:6.4.0
container_name: kibana
links:
- elasticsearch:es #可以用es这个域名访问elasticsearch服务
depends_on:
- elasticsearch #kibana在elasticsearch启动之后再启动
environment:
- "elasticsearch.hosts=http://es:9200" #设置访问elasticsearch的地址
ports:
- 5601:5601
logstash:
image: logstash:6.4.0
container_name: logstash
volumes:
- /home/datas/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
depends_on:
- elasticsearch #kibana在elasticsearch启动之后再启动
links:
- elasticsearch:es #可以用es这个域名访问elasticsearch服务
ports:
- 4560:4560
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gucurlson/pigX.git
git@gitee.com:gucurlson/pigX.git
gucurlson
pigX
pigX
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385