master
zhuce 2024-03-20 13:22:16 +08:00
parent d37778a386
commit d62fa4ae04
2 changed files with 23 additions and 25 deletions

View File

@ -7,4 +7,4 @@ brokerRole=ASYNC_MASTER
flushDiskType=ASYNC_FLUSH flushDiskType=ASYNC_FLUSH
autoCreateTopicEnable=true autoCreateTopicEnable=true
autoCreateSubscriptionGroup=true autoCreateSubscriptionGroup=true
brokerIP1=localhost brokerIP1=192.168.1.47

View File

@ -1,5 +1,5 @@
version: '3' version: '3'
services: services:
mysql: mysql:
image: mysql:8.0.30 image: mysql:8.0.30
restart: always restart: always
@ -19,24 +19,24 @@ services:
redis: redis:
image: redis:7.0.4 image: redis:7.0.4
restart: always restart: always
container_name: 'redis' container_name: 'lili-redis'
ports: ports:
- 6379:6379 - 6379:6379
volumes: volumes:
- ../volumes/data/redsidata:/data - ../volumes/data/redsidata:/data
command: redis-server --port 6379 --requirepass lilishop --appendonly yes --protected-mode no command: redis-server --port 6379 --requirepass lilishop --appendonly yes --protected-mode no
elasticsearch: elasticsearch:
image: elasticsearch:7.17.6 image: elasticsearch:7.17.6
restart: always restart: always
container_name: elasticsearch container_name: lili-elasticsearch
volumes: volumes:
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功 # 映射本地目录权限一定要设置为 777 权限,否则启动不成功
# - ../volumes/data/es7/logs:/usr/share/elasticsearch/logs:rw # - ../volumes/data/es7/logs:/usr/share/elasticsearch/logs:rw
# - ../volumes/data/es7/data:/usr/share/elasticsearch/data:rw # - ../volumes/data/es7/data:/usr/share/elasticsearch/data:rw
- ./config/ik:/usr/share/elasticsearch/plugins/ik - ./config/ik:/usr/share/elasticsearch/plugins/ik
# - "./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml" # - "./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
ports: ports:
- "9200:9200" - "9200:9200"
- "9300:9300" - "9300:9300"
environment: environment:
@ -47,39 +47,38 @@ services:
driver: "json-file" driver: "json-file"
options: options:
max-size: "50m" max-size: "50m"
networks: networks:
- stack - stack
ulimits: ulimits:
nofile: nofile:
soft: 65535 soft: 65535
hard: 65535 hard: 65535
kibana: kibana:
image: docker.elastic.co/kibana/kibana:7.17.6 image: docker.elastic.co/kibana/kibana:7.17.6
restart: always restart: always
container_name: kibana container_name: lili-kibana
ports: ports:
- 5601:5601 - 5601:5601
# volumes: # volumes:
# - "./config/kibana.yml:/usr/share/kibana/config/kibana.yml" # - "./config/kibana.yml:/usr/share/kibana/config/kibana.yml"
networks: networks:
- stack - stack
depends_on: ['elasticsearch'] depends_on: [ 'elasticsearch' ]
logstash: logstash:
image: logstash:7.17.6 image: logstash:7.17.6
restart: always restart: always
container_name: logstash container_name: lili-logstash
volumes: volumes:
- ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件 - ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件
networks: networks:
- stack - stack
depends_on: ['elasticsearch'] depends_on: [ 'elasticsearch' ]
ports: ports:
- 4560:4560 - 4560:4560
# rocket mq name server # rocket mq name server
rmqnamesrv: rmqnamesrv:
image: apache/rocketmq:4.9.6 image: apache/rocketmq:4.9.6
restart: always restart: always
@ -87,8 +86,8 @@ services:
# environment: # environment:
# JAVA_OPT_EXT: "-server -Xms64m -Xmx64m -Xmn64m" # JAVA_OPT_EXT: "-server -Xms64m -Xmx64m -Xmn64m"
# volumes: # volumes:
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功 # 映射本地目录权限一定要设置为 777 权限,否则启动不成功
# - ../volumes/data/rocket/server/logs:/home/rocketmq/logs # - ../volumes/data/rocket/server/logs:/home/rocketmq/logs
networks: networks:
- rocketmq - rocketmq
ports: ports:
@ -143,9 +142,8 @@ services:
- ../volumes/data/xxl-job:/data/applogs - ../volumes/data/xxl-job:/data/applogs
ports: ports:
- 9001:9001 - 9001:9001
networks: networks:
rocketmq: rocketmq:
driver: bridge driver: bridge
stack: stack:
driver: bridge driver: bridge