feat(mall): 更新部署脚本
parent
cd5f111d05
commit
5c7a4bab28
@ -0,0 +1,29 @@
|
||||
version: '3'
|
||||
services:
|
||||
# RabbitMQ
|
||||
rabbitmq:
|
||||
image: rabbitmq:management
|
||||
ports:
|
||||
- "5672:5672"
|
||||
- "15672:15672"
|
||||
container_name: rabbitmq
|
||||
environment:
|
||||
#rabbitmq的初始用户名
|
||||
RABBITMQ_DEFAULT_USER: guest
|
||||
#rabbitmq的初始密码
|
||||
RABBITMQ_DEFAULT_PASS: guest
|
||||
network_mode: "host"
|
||||
# Elasticsearch服务
|
||||
elasticsearch:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
|
||||
container_name: elasticsearch
|
||||
volumes:
|
||||
- ./es/data:/usr/share/elasticsearch/data
|
||||
- ./es/plugins:/usr/share/elasticsearch/plugins
|
||||
# - ./es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
- bootstrap.memory_lock=true
|
||||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||||
# - "ELASTIC_PASSWORD: 123456"
|
||||
network_mode: "host"
|
@ -0,0 +1,10 @@
|
||||
cluster.name: "docker-cluster"
|
||||
network.host: 0.0.0.0
|
||||
http.port: 9200
|
||||
# 开启es跨域
|
||||
http.cors.enabled: true
|
||||
http.cors.allow-origin: "*"
|
||||
http.cors.allow-headers: Authorization
|
||||
# # 开启安全控制
|
||||
xpack.security.enabled: true
|
||||
xpack.security.transport.ssl.enabled: true
|
Loading…
Reference in New Issue