1 Star 2 Fork 1

Emotion404/goodsKill

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 4.92 KB
一键复制 编辑 原始数据 按行查看 历史
techa 提交于 2020-12-27 14:32 . Dev (#69)
version: "3"
services:
rabbitmq-management:
image: rabbitmq:3-management
container_name: rabbitmq
restart: always
ports:
- "5672:5672"
- "15672:15672"
networks:
- somenetwork
nacos:
image: nacos/nacos-server:latest
container_name: nacos
environment:
- PREFER_HOST_MODE=hostname
- MODE=standalone
volumes:
- ./nacos-docker/standalone-logs/:/home/nacos/logs
- ./nacos-docker/init.d/custom.properties:/home/nacos/init.d/custom.properties
ports:
- "8848:8848"
restart: always
networks:
- somenetwork
# prometheus:
# container_name: prometheus
# image: prom/prometheus:latest
# volumes:
# - ./nacos-docker/prometheus/prometheus-standalone.yaml:/etc/prometheus/prometheus.yml
# ports:
# - "9090:9090"
# depends_on:
# - nacos
# restart: on-failure
# networks:
# - somenetwork
# grafana:
# container_name: grafana
# image: grafana/grafana:latest
# ports:
# - 3000:3000
# restart: on-failure
# networks:
# - somenetwork
zookeeper:
image: zookeeper
container_name: zookeeper
restart: always
ports:
- "2181:2181"
networks:
- somenetwork
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- "9092:9092"
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
depends_on:
- zookeeper
restart: always
networks:
- somenetwork
redis:
image: redis
container_name: redis
restart: always
environment:
- TZ=Asia/Shanghai
ports:
- "6379:6379"
networks:
- somenetwork
elasticsearch:
image: elasticsearch:7.7.0
container_name: elasticsearch
environment:
- node.name=es01
- discovery.seed_hosts=elasticsearch1
- cluster.initial_master_nodes=es01
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
restart: always
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
- 9300:9300
networks:
- somenetwork
##放开注释即为es双节点模式
# elasticsearch1:
# image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
# container_name: elasticsearch1
# environment:
# - node.name=es02
# - discovery.seed_hosts=elasticsearch
# - cluster.initial_master_nodes=es01
# - cluster.name=docker-cluster
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# ports:
# - 9201:9200
# - 9301:9300
# depends_on:
# - elasticsearch
# networks:
# - somenetwork
kibana:
image: kibana:7.7.0
container_name: kibana
ports:
- 5601:5601
depends_on:
- elasticsearch
environment:
- elasticsearch.hosts=http://elasticsearch:9200
- i18n.locale=zh-CN
networks:
- somenetwork
mysql:
image: mysql:8.0
container_name: mysql
restart: always
ports:
- "3306:3306"
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_0900_ai_ci
volumes:
- ./goodsKill-spring-boot-web-consumer/goodsKill-web/src/main/sql:/docker-entrypoint-initdb.d/
environment:
MYSQL_ROOT_PASSWORD: "Password123"
MYSQL_DATABASE: "seckill"
MYSQL_USER: "seckill"
MYSQL_PASSWORD: "Password123"
networks:
- somenetwork
mongo:
image: mongo:4.2.6
container_name: mongo
restart: always
ports:
- "27017:27017"
networks:
- somenetwork
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: root
goodses:
build: ./goodsKill-es-provider
container_name: goodses
volumes:
- /logs/goods-es/:/logs/goodsKill
depends_on:
- elasticsearch
- nacos
# - elasticsearch1
networks:
- somenetwork
goodsmongo:
build: ./goodsKill-mongo-provider
container_name: goodsmongo
volumes:
- /logs/goods-mongo/:/logs/goodsKill
depends_on:
- nacos
- mongo
networks:
- somenetwork
goodsservice:
build: ./goodsKill-spring-boot-provider
container_name: goodsservice
restart: on-failure:3
volumes:
- /logs/goods-service/:/logs/goodsKill
depends_on:
- elasticsearch
- zookeeper
- goodsmongo
- goodses
- redis
- nacos
networks:
- somenetwork
goodsweb:
build: ./goodsKill-spring-boot-web-consumer
container_name: goodsweb
restart: on-failure:3
volumes:
- /logs/goods-web/:/logs/goodsKill
depends_on:
- goodsservice
- zookeeper
- redis
- nacos
ports:
- 8080:8080
networks:
- somenetwork
networks:
somenetwork:
driver: bridge
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Emotion404/goodsKill.git
[email protected]:Emotion404/goodsKill.git
Emotion404
goodsKill
goodsKill
master

搜索帮助