Compare commits
No commits in common. "d62fa4ae04b5c6d8b1548967a9cb3bbdcc9d6768" and "950662dad33616388534025196cfffdcda29dead" have entirely different histories.
d62fa4ae04
...
950662dad3
|
@ -7,4 +7,4 @@ brokerRole=ASYNC_MASTER
|
||||||
flushDiskType=ASYNC_FLUSH
|
flushDiskType=ASYNC_FLUSH
|
||||||
autoCreateTopicEnable=true
|
autoCreateTopicEnable=true
|
||||||
autoCreateSubscriptionGroup=true
|
autoCreateSubscriptionGroup=true
|
||||||
brokerIP1=192.168.1.47
|
brokerIP1=localhost
|
|
@ -6,7 +6,6 @@ character-set-server=utf8mb4
|
||||||
collation-server=utf8mb4_unicode_ci
|
collation-server=utf8mb4_unicode_ci
|
||||||
init_connect='SET NAMES utf8mb4'
|
init_connect='SET NAMES utf8mb4'
|
||||||
group_concat_max_len=4294967295
|
group_concat_max_len=4294967295
|
||||||
max_connections=5000
|
|
||||||
log-bin=mysql-bin # 开启 binlog
|
log-bin=mysql-bin # 开启 binlog
|
||||||
binlog-format=ROW # 选择 ROW 模式
|
binlog-format=ROW # 选择 ROW 模式
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,62 @@
|
||||||
|
# version: '3'
|
||||||
|
# services:
|
||||||
|
# buyer:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/buyer-api:4.3.0.1
|
||||||
|
# container_name: buyer
|
||||||
|
# network_mode: host
|
||||||
|
# environment:
|
||||||
|
# - TZ=Asia/Shanghai
|
||||||
|
# - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
|
||||||
|
|
||||||
|
# common:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/common-api:4.3.0.1
|
||||||
|
# container_name: common
|
||||||
|
# environment:
|
||||||
|
# - TZ=Asia/Shanghai
|
||||||
|
# - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
|
||||||
|
# network_mode: host
|
||||||
|
|
||||||
|
# seller:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/seller-api:4.3.0.1
|
||||||
|
# container_name: seller
|
||||||
|
# environment:
|
||||||
|
# - TZ=Asia/Shanghai
|
||||||
|
# - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
|
||||||
|
# network_mode: host
|
||||||
|
|
||||||
|
# manager:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/manager-api:4.3.0.1
|
||||||
|
# container_name: manager
|
||||||
|
# environment:
|
||||||
|
# - TZ=Asia/Shanghai
|
||||||
|
# - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
|
||||||
|
# network_mode: host
|
||||||
|
|
||||||
|
# wap-ui:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/wap-ui:4.3.0.1
|
||||||
|
# container_name: wap-ui
|
||||||
|
# network_mode: host
|
||||||
|
|
||||||
|
# buyer-ui:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui:4.3.0.1
|
||||||
|
# container_name: buyer-ui
|
||||||
|
# network_mode: host
|
||||||
|
|
||||||
|
# seller-ui:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/seller-ui:4.3.0.1
|
||||||
|
# container_name: seller-ui
|
||||||
|
# network_mode: host
|
||||||
|
|
||||||
|
# manager-ui:
|
||||||
|
# restart: always
|
||||||
|
# image: registry.cn-beijing.aliyuncs.com/lili-images/manager-ui:4.3.0.1
|
||||||
|
# container_name: manager-ui
|
||||||
|
# network_mode: host
|
||||||
|
|
|
@ -0,0 +1,257 @@
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
setup:
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
|
||||||
|
# volumes:
|
||||||
|
# - certs:/usr/share/elasticsearch/config/certs
|
||||||
|
user: "0"
|
||||||
|
command: >
|
||||||
|
bash -c '
|
||||||
|
if [ x${ELASTIC_PASSWORD} == x ]; then
|
||||||
|
echo "Set the ELASTIC_PASSWORD environment variable in the .env file";
|
||||||
|
exit 1;
|
||||||
|
elif [ x${KIBANA_PASSWORD} == x ]; then
|
||||||
|
echo "Set the KIBANA_PASSWORD environment variable in the .env file";
|
||||||
|
exit 1;
|
||||||
|
fi;
|
||||||
|
if [ ! -f certs/ca.zip ]; then
|
||||||
|
echo "Creating CA";
|
||||||
|
bin/elasticsearch-certutil ca --silent --pem -out config/certs/ca.zip;
|
||||||
|
unzip config/certs/ca.zip -d config/certs;
|
||||||
|
fi;
|
||||||
|
if [ ! -f certs/certs.zip ]; then
|
||||||
|
echo "Creating certs";
|
||||||
|
echo -ne \
|
||||||
|
"instances:\n"\
|
||||||
|
" - name: es01\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - es01\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
" - name: es02\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - es02\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
" - name: es03\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - es03\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
> config/certs/instances.yml;
|
||||||
|
bin/elasticsearch-certutil cert --silent --pem -out config/certs/certs.zip --in config/certs/instances.yml --ca-cert config/certs/ca/ca.crt --ca-key config/certs/ca/ca.key;
|
||||||
|
unzip config/certs/certs.zip -d config/certs;
|
||||||
|
fi;
|
||||||
|
echo "Setting file permissions"
|
||||||
|
chown -R root:root config/certs;
|
||||||
|
find . -type d -exec chmod 750 \{\} \;;
|
||||||
|
find . -type f -exec chmod 640 \{\} \;;
|
||||||
|
echo "Waiting for Elasticsearch availability";
|
||||||
|
until curl -s --cacert config/certs/ca/ca.crt https://es01:9200 | grep -q "missing authentication credentials"; do sleep 30; done;
|
||||||
|
echo "Setting kibana_system password";
|
||||||
|
until curl -s -X POST --cacert config/certs/ca/ca.crt -u elastic:${ELASTIC_PASSWORD} -H "Content-Type: application/json" https://es01:9200/_security/user/kibana_system/_password -d "{\"password\":\"${KIBANA_PASSWORD}\"}" | grep -q "^{}"; do sleep 10; done;
|
||||||
|
echo "All done!";
|
||||||
|
'
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "[ -f config/certs/es01/es01.crt ]"]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 120
|
||||||
|
|
||||||
|
es01:
|
||||||
|
depends_on:
|
||||||
|
setup:
|
||||||
|
condition: service_healthy
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
|
||||||
|
volumes:
|
||||||
|
# - certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ../volumes/data/es01/logs:/usr/share/es/logs:rw
|
||||||
|
- ../volumes/data/es01/data:/usr/share/es/data:rw
|
||||||
|
ports:
|
||||||
|
- ${ES_PORT}:9200
|
||||||
|
environment:
|
||||||
|
- node.name=es01
|
||||||
|
- cluster.name=${CLUSTER_NAME}
|
||||||
|
- cluster.initial_master_nodes=es01,es02,es03
|
||||||
|
- discovery.seed_hosts=es02,es03
|
||||||
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=true
|
||||||
|
# - xpack.security.http.ssl.enabled=true
|
||||||
|
# - xpack.security.http.ssl.key=certs/es01/es01.key
|
||||||
|
# - xpack.security.http.ssl.certificate=certs/es01/es01.crt
|
||||||
|
# - xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
# - xpack.security.http.ssl.verification_mode=certificate
|
||||||
|
# - xpack.security.transport.ssl.enabled=true
|
||||||
|
# - xpack.security.transport.ssl.key=certs/es01/es01.key
|
||||||
|
# - xpack.security.transport.ssl.certificate=certs/es01/es01.crt
|
||||||
|
# - xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
# - xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=${LICENSE}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
networks:
|
||||||
|
- stack
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
|
||||||
|
es02:
|
||||||
|
depends_on:
|
||||||
|
- es01
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
|
||||||
|
volumes:
|
||||||
|
# - certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ../volumes/data/es02/logs:/usr/share/es/logs:rw
|
||||||
|
- ../volumes/data/es02/data:/usr/share/es/data:rw
|
||||||
|
environment:
|
||||||
|
- node.name=es02
|
||||||
|
- cluster.name=${CLUSTER_NAME}
|
||||||
|
- cluster.initial_master_nodes=es01,es02,es03
|
||||||
|
- discovery.seed_hosts=es01,es03
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=true
|
||||||
|
# - xpack.security.http.ssl.enabled=true
|
||||||
|
# - xpack.security.http.ssl.key=certs/es02/es02.key
|
||||||
|
# - xpack.security.http.ssl.certificate=certs/es02/es02.crt
|
||||||
|
# - xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
# - xpack.security.http.ssl.verification_mode=certificate
|
||||||
|
# - xpack.security.transport.ssl.enabled=true
|
||||||
|
# - xpack.security.transport.ssl.key=certs/es02/es02.key
|
||||||
|
# - xpack.security.transport.ssl.certificate=certs/es02/es02.crt
|
||||||
|
# - xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
# - xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=${LICENSE}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
networks:
|
||||||
|
- stack
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
|
||||||
|
es03:
|
||||||
|
depends_on:
|
||||||
|
- es02
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
|
||||||
|
volumes:
|
||||||
|
# - certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ../volumes/data/es03/logs:/usr/share/es/logs:rw
|
||||||
|
- ../volumes/data/es03/data:/usr/share/es/data:rw
|
||||||
|
environment:
|
||||||
|
- node.name=es03
|
||||||
|
- cluster.name=${CLUSTER_NAME}
|
||||||
|
- cluster.initial_master_nodes=es01,es02,es03
|
||||||
|
- discovery.seed_hosts=es01,es02
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=true
|
||||||
|
# - xpack.security.http.ssl.enabled=true
|
||||||
|
# - xpack.security.http.ssl.key=certs/es03/es03.key
|
||||||
|
# - xpack.security.http.ssl.certificate=certs/es03/es03.crt
|
||||||
|
# - xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
# - xpack.security.http.ssl.verification_mode=certificate
|
||||||
|
# - xpack.security.transport.ssl.enabled=true
|
||||||
|
# - xpack.security.transport.ssl.key=certs/es03/es03.key
|
||||||
|
# - xpack.security.transport.ssl.certificate=certs/es03/es03.crt
|
||||||
|
# - xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
# - xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=${LICENSE}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
networks:
|
||||||
|
- stack
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
|
||||||
|
kibana:
|
||||||
|
depends_on:
|
||||||
|
es01:
|
||||||
|
condition: service_healthy
|
||||||
|
es02:
|
||||||
|
condition: service_healthy
|
||||||
|
es03:
|
||||||
|
condition: service_healthy
|
||||||
|
image: docker.elastic.co/kibana/kibana:${STACK_VERSION}
|
||||||
|
volumes:
|
||||||
|
# - certs:/usr/share/kibana/config/certs
|
||||||
|
- ../volumes/data/kibanadata:/usr/share/kibana/data:rw
|
||||||
|
ports:
|
||||||
|
- ${KIBANA_PORT}:5601
|
||||||
|
environment:
|
||||||
|
- SERVERNAME=kibana
|
||||||
|
- ELASTICSEARCH_HOSTS=https://es01:9200
|
||||||
|
- ELASTICSEARCH_USERNAME=kibana_system
|
||||||
|
- ELASTICSEARCH_PASSWORD=${KIBANA_PASSWORD}
|
||||||
|
# - ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES=config/certs/ca/ca.crt
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
networks:
|
||||||
|
- stack
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
|
||||||
|
logstash:
|
||||||
|
image: logstash:8.0.0
|
||||||
|
container_name: logstash
|
||||||
|
volumes:
|
||||||
|
- ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件
|
||||||
|
- ./config/logstash.yml:/usr/share/logstash/config/logstash.yml
|
||||||
|
- ./config/lili_goods.json:/usr/share/logstash/templates/lili_goods.json
|
||||||
|
networks:
|
||||||
|
- stack
|
||||||
|
depends_on: ['elasticsearch']
|
||||||
|
ports:
|
||||||
|
- 4560:4560
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
certs:
|
||||||
|
driver: local
|
||||||
|
esdata01:
|
||||||
|
driver: local
|
||||||
|
esdata02:
|
||||||
|
driver: local
|
||||||
|
esdata03:
|
||||||
|
driver: local
|
||||||
|
kibanadata:
|
||||||
|
driver: local
|
||||||
|
networks:
|
||||||
|
stack:
|
||||||
|
driver: bridge
|
|
@ -1,151 +0,0 @@
|
||||||
version: '3'
|
|
||||||
services:
|
|
||||||
mysql:
|
|
||||||
image: service.pickmall.cn:16040/middleware/mysql:8.0.33
|
|
||||||
restart: always
|
|
||||||
container_name: mysql
|
|
||||||
volumes:
|
|
||||||
- ../volumes/data/mysqldata:/var/lib/mysql
|
|
||||||
- ./config/my.cnf:/etc/mysql/conf.d/my.cnf
|
|
||||||
# 数据库还原目录 可将需要还原的sql文件放在这里
|
|
||||||
- ./init/mysql:/docker-entrypoint-initdb.d
|
|
||||||
environment:
|
|
||||||
- "MYSQL_ROOT_PASSWORD=lilishop"
|
|
||||||
- "MYSQL_DATABASE=lilishop"
|
|
||||||
- "TZ=Asia/Shanghai"
|
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
|
|
||||||
redis:
|
|
||||||
image: service.pickmall.cn:16040/middleware/redis:7.0.8
|
|
||||||
restart: always
|
|
||||||
container_name: 'redis'
|
|
||||||
ports:
|
|
||||||
- 6379:6379
|
|
||||||
volumes:
|
|
||||||
- ../volumes/data/redsidata:/data
|
|
||||||
command: redis-server --port 6379 --requirepass lilishop --appendonly yes --protected-mode no
|
|
||||||
|
|
||||||
elasticsearch:
|
|
||||||
image: service.pickmall.cn:16040/middleware/elasticsearch:7.17.9
|
|
||||||
restart: always
|
|
||||||
container_name: 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:
|
|
||||||
- "9200:9200"
|
|
||||||
- "9300:9300"
|
|
||||||
environment:
|
|
||||||
- cluster.name=elasticsearch
|
|
||||||
- discovery.type=single-node
|
|
||||||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
||||||
logging:
|
|
||||||
driver: "json-file"
|
|
||||||
options:
|
|
||||||
max-size: "50m"
|
|
||||||
networks:
|
|
||||||
- stack
|
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 65535
|
|
||||||
hard: 65535
|
|
||||||
|
|
||||||
kibana:
|
|
||||||
image: service.pickmall.cn:16040/middleware/kibana:7.17.9
|
|
||||||
restart: always
|
|
||||||
container_name: kibana
|
|
||||||
ports:
|
|
||||||
- 5601:5601
|
|
||||||
# volumes:
|
|
||||||
# - "./config/kibana.yml:/usr/share/kibana/config/kibana.yml"
|
|
||||||
networks:
|
|
||||||
- stack
|
|
||||||
depends_on: ['elasticsearch']
|
|
||||||
|
|
||||||
|
|
||||||
logstash:
|
|
||||||
image: service.pickmall.cn:16040/middleware/logstash:7.17.9
|
|
||||||
restart: always
|
|
||||||
container_name: logstash
|
|
||||||
volumes:
|
|
||||||
- ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件
|
|
||||||
networks:
|
|
||||||
- stack
|
|
||||||
depends_on: ['elasticsearch']
|
|
||||||
ports:
|
|
||||||
- 4560:4560
|
|
||||||
|
|
||||||
# rocket mq name server
|
|
||||||
rmqnamesrv:
|
|
||||||
image: service.pickmall.cn:16040/middleware/apache/rocketmq:4.9.7
|
|
||||||
restart: always
|
|
||||||
container_name: rocket-server
|
|
||||||
# environment:
|
|
||||||
# JAVA_OPT_EXT: "-server -Xms64m -Xmx64m -Xmn64m"
|
|
||||||
# volumes:
|
|
||||||
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
|
|
||||||
# - ../volumes/data/rocket/server/logs:/home/rocketmq/logs
|
|
||||||
networks:
|
|
||||||
- rocketmq
|
|
||||||
ports:
|
|
||||||
- 9876:9876
|
|
||||||
command: sh mqnamesrv
|
|
||||||
# rocket mq broker
|
|
||||||
rmqbroker:
|
|
||||||
image: service.pickmall.cn:16040/middleware/apache/rocketmq:4.9.7
|
|
||||||
restart: always
|
|
||||||
container_name: rocket-broker
|
|
||||||
volumes:
|
|
||||||
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
|
|
||||||
# - ../volumes/data/rocket/broker/logs:/home/rocketmq/logs
|
|
||||||
# - ../volumes/data/rocket/broker/store:/home/rocketmq/store
|
|
||||||
- ./config/broker.conf:/opt/rocketmq-4.9.7/conf/broker.conf
|
|
||||||
environment:
|
|
||||||
- NAMESRV_ADDR=rmqnamesrv:9876
|
|
||||||
# - JAVA_OPTS:=-Duser.home=/opt
|
|
||||||
- JAVA_OPT_EXT=-server -Xms64m -Xmx64m -Xmn64m
|
|
||||||
depends_on:
|
|
||||||
- rmqnamesrv
|
|
||||||
networks:
|
|
||||||
- rocketmq
|
|
||||||
ports:
|
|
||||||
- 10909:10909
|
|
||||||
- 10911:10911
|
|
||||||
command: sh mqbroker -c /opt/rocketmq-4.9.7/conf/broker.conf
|
|
||||||
# rocket console 这个可以不需要
|
|
||||||
rmqdashboard:
|
|
||||||
image: service.pickmall.cn:16040/middleware/apacherocketmq/rocketmq-dashboard:1.0.0
|
|
||||||
restart: always
|
|
||||||
container_name: rocket-dashboard
|
|
||||||
environment:
|
|
||||||
- JAVA_OPTS=-Drocketmq.config.namesrvAddr=rmqnamesrv:9876 -Dserver.port=8180 -Drocketmq.config.isVIPChannel=false
|
|
||||||
# - JAVA_OPT_EXT=-Xms128m -Xmx128m -Xmn128m
|
|
||||||
depends_on:
|
|
||||||
- rmqnamesrv
|
|
||||||
networks:
|
|
||||||
- rocketmq
|
|
||||||
ports:
|
|
||||||
- 8180:8180
|
|
||||||
# xxl-job 分布式调度中心
|
|
||||||
xxl-job:
|
|
||||||
image: service.pickmall.cn:16040/middleware/xuxueli/xxl-job-admin:2.3.0
|
|
||||||
restart: always
|
|
||||||
container_name: xxl-job
|
|
||||||
environment:
|
|
||||||
- PARAMS=--spring.datasource.url=jdbc:mysql://mysql:3306/lilishop?Unicode=true&characterEncoding=UTF-8 --spring.datasource.username=root --spring.datasource.password=lilishop --server.port=9001
|
|
||||||
depends_on:
|
|
||||||
- mysql
|
|
||||||
volumes:
|
|
||||||
- ../volumes/data/xxl-job:/data/applogs
|
|
||||||
ports:
|
|
||||||
- 9001:9001
|
|
||||||
networks:
|
|
||||||
rocketmq:
|
|
||||||
driver: bridge
|
|
||||||
stack:
|
|
||||||
driver: bridge
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ services:
|
||||||
redis:
|
redis:
|
||||||
image: redis:7.0.4
|
image: redis:7.0.4
|
||||||
restart: always
|
restart: always
|
||||||
container_name: 'lili-redis'
|
container_name: 'redis'
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -29,7 +29,7 @@ services:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: elasticsearch:7.17.6
|
image: elasticsearch:7.17.6
|
||||||
restart: always
|
restart: always
|
||||||
container_name: lili-elasticsearch
|
container_name: elasticsearch
|
||||||
volumes:
|
volumes:
|
||||||
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
|
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
|
||||||
# - ../volumes/data/es7/logs:/usr/share/elasticsearch/logs:rw
|
# - ../volumes/data/es7/logs:/usr/share/elasticsearch/logs:rw
|
||||||
|
@ -51,43 +51,44 @@ services:
|
||||||
- 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: lili-kibana
|
container_name: 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: lili-logstash
|
container_name: 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.4
|
||||||
restart: always
|
restart: always
|
||||||
container_name: rocket-server
|
container_name: rocket-server
|
||||||
# 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:
|
||||||
|
@ -95,14 +96,14 @@ services:
|
||||||
command: sh mqnamesrv
|
command: sh mqnamesrv
|
||||||
# rocket mq broker
|
# rocket mq broker
|
||||||
rmqbroker:
|
rmqbroker:
|
||||||
image: apache/rocketmq:4.9.6
|
image: apache/rocketmq:4.9.4
|
||||||
restart: always
|
restart: always
|
||||||
container_name: rocket-broker
|
container_name: rocket-broker
|
||||||
volumes:
|
volumes:
|
||||||
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
|
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
|
||||||
# - ../volumes/data/rocket/broker/logs:/home/rocketmq/logs
|
# - ../volumes/data/rocket/broker/logs:/home/rocketmq/logs
|
||||||
# - ../volumes/data/rocket/broker/store:/home/rocketmq/store
|
# - ../volumes/data/rocket/broker/store:/home/rocketmq/store
|
||||||
- ./config/broker.conf:/opt/rocketmq-4.9.6/conf/broker.conf
|
- ./config/broker.conf:/opt/rocketmq-4.9.4/conf/broker.conf
|
||||||
environment:
|
environment:
|
||||||
- NAMESRV_ADDR=rmqnamesrv:9876
|
- NAMESRV_ADDR=rmqnamesrv:9876
|
||||||
# - JAVA_OPTS:=-Duser.home=/opt
|
# - JAVA_OPTS:=-Duser.home=/opt
|
||||||
|
@ -114,7 +115,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 10909:10909
|
- 10909:10909
|
||||||
- 10911:10911
|
- 10911:10911
|
||||||
command: sh mqbroker -c /opt/rocketmq-4.9.6/conf/broker.conf
|
command: sh mqbroker -c /opt/rocketmq-4.9.4/conf/broker.conf
|
||||||
# rocket console 这个可以不需要
|
# rocket console 这个可以不需要
|
||||||
rmqdashboard:
|
rmqdashboard:
|
||||||
image: apacherocketmq/rocketmq-dashboard:1.0.0
|
image: apacherocketmq/rocketmq-dashboard:1.0.0
|
||||||
|
@ -147,3 +148,4 @@ networks:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
stack:
|
stack:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
|
89484
init/mysql/lilishop.sql
89484
init/mysql/lilishop.sql
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue