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