加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 3.01 KB
一键复制 编辑 原始数据 按行查看 历史
version: '3.6'
services:
nginx:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/nginx:latest
container_name: bgxq-nginx
networks:
- bgxq-network
ports:
- "80:80"
volumes:
- bgxq-nginx:/etc/nginx
depends_on:
- springboot
elasticsearch:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/elasticsearch:latest
container_name: bgxq-es
environment:
- node.name=es-node-1
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms2g -Xmx2g
ports:
- 9200:9200
- 9300:9300
volumes:
- bgxq-es:/usr/share/elasticsearch
networks:
- bgxq-network
logstash:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/logstash:latest
container_name: bgxq-logstash
ports:
- 5044:5044
volumes:
- bgxq-logstash:/usr/share/logstash
- bgxq-log:/usr/share/logstash/logs/bgxq
# environment:
# LS_JAVA_OPTS: "-Xmx256m -Xms256m"
networks:
- bgxq-network
depends_on:
- elasticsearch
kibana:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/kibana:latest
container_name: bgxq-kibana
ports:
- 5601:5601
volumes:
- bgxq-kibana:/usr/share/kibana/config
# environment:
# - ELASTICSEARCH_URL=http://elasticsearch:9200
# - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
networks:
- bgxq-network
depends_on:
- elasticsearch
springboot:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/springboot:latest
container_name: bgxq-springboot
networks:
- bgxq-network
ports:
- "20000:20000"
volumes:
- bgxq-log:/app/log
depends_on:
- mysql
- redis
- elasticsearch
- logstash
rails:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/rails:latest
container_name: bgxq-rails
networks:
- bgxq-network
ports:
- "20001:20001"
environment:
MYSQL_USER: lizijian
MYSQL_PASSWORD: "595595"
depends_on:
- springboot
backend:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/backend:latest
container_name: bgxq-backend
networks:
- bgxq-network
ports:
- "3001:3001"
environment:
NODE_ENV: 'production'
depends_on:
- springboot
mysql:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/mysql:latest
container_name: bgxq-mysql
networks:
- bgxq-network
ports:
- "3306:3306"
volumes:
- bgxq-mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 595595
MYSQL_DATABASE: bgxq
MYSQL_USER: lizijian
MYSQL_PASSWORD: 595595
redis:
image: registry.cn-hangzhou.aliyuncs.com/bgxq/redis:latest
container_name: bgxq-redis
networks:
- bgxq-network
ports:
- "6379:6379"
volumes:
- bgxq-redis:/data
networks:
bgxq-network:
driver: bridge
volumes:
bgxq-es:
driver: local
bgxq-redis:
driver: local
bgxq-mysql:
driver: local
bgxq-log:
driver: local
bgxq-logstash:
driver: local
bgxq-nginx:
driver: local
bgxq-kibana:
driver: local
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化