Commit 6527f2d1 authored by tianye's avatar tianye

v1.0.1版本

parents
#!/bin/bash
SC_IMAGE_URL="docker pull harbor.hw.jiankangyouyi.com:5000/search-center-public/"
SC_IMAGE_NAME="search-center"
SC_IMAGE_VERSION="v1.0"
REPALCE_IMAGE="${SC_IMAGE_URL}${SC_IMAGE_NAME}:${SC_IMAGE_VERSION}"
echo ${REPALCE_IMAGE}
#!/bin/bash
. ./install.ini
#echo ${REPALCE_IMAGE}
sed -i -e "s#REPALCE(IMAGE)#${REPALCE_IMAGE}#g" search_center/docker-compose-sc.yaml
cd search_center
sudo docker-compose -f docker-compose-sc.yaml up -d
logging:
config: classpath:log/log4j2-qa.xml
spring:
mail:
host: smtpdm.aliyun.com # 邮件配置说明 https://docs.infra.jiankangyouyi.com/developers/healthcloud/basic-components/mail
username: alarm-qa@developer.zhidoushi.cn
password: UaYubo4YA5PSdw0R # jasypt加密
default-encoding: UTF-8
port: 465
properties:
mail:
debug: true
smtp:
auth: true
starttls: true
required: true
socketFactory:
port: 465
class: javax.net.ssl.SSLSocketFactory
fallback: false
rabbitmq:
host: 121.36.45.76,121.36.67.45,119.3.221.135
port: 5672
username: ego_gw_qa
password: jkyy_pwd
virtual-host: /qa
publisher-confirm-type: simple
health-cloud:
sentry:
enabled: true # 开关 消息发送与api注册都将关闭,api注册可以独立控制,根据api.scan.register-request-mapping: false
es:
host: es
schema: http
tcpPort: 9300
clusterName: elasticsearch-cluster
httpPort: 9200
auth:
enable: true
username: app_search-center
password: 3HPDm0OdmoMZ6DiYWCUG
env-of-index: qa
management:
health:
elasticsearch:
enabled: false
endpoints:
web:
exposure:
include: '*'
metrics:
tags:
application: ${spring.application.name}
distribution:
percentiles-histogram:
recommend:
timer:
recall: true
http:
server:
requests: true
# 集群名称
cluster.name: elasticsearch-cluster
# 节点名称
node.name: es-node-1
# 绑定host,0.0.0.0代表当前节点的ip
network.host: 0.0.0.0
# 设置其它节点和该节点交互的ip地址,如果不设置它会自动判断,值必须是个真实的ip地址(本机ip)
network.publish_host: 0.0.0.0
# 设置对外服务的http端口,默认为9200
http.port: 9200
# 设置节点间交互的tcp端口,默认是9300
transport.tcp.port: 9300
# 是否支持跨域,默认为false
http.cors.enabled: true
# 当设置允许跨域,默认为*,表示支持所有域名,如果我们只是允许某些网站能访问,那么可以使用正则表达式。比如只允许本地地址。 /https?:\/\/localhost(:[0-9]+)?/
http.cors.allow-origin: "*"
# 表示这个节点是否可以充当主节点
node.master: true
# 是否充当数据节点
node.data: true
# 所有主从节点ip:port
#discovery.seed_hosts: ["192.168.200.135:9300"] #本地只有一个节点,无法正常启动,先注释
# 这个参数决定了在选主过程中需要 有多少个节点通信 预防脑裂 N/2+1
discovery.zen.minimum_master_nodes: 1
#初始化主节点
#cluster.initial_master_nodes: ["es-node-1"] #本地只有一个节点,无法正常启动,先注释
version: '3'
services:
elasticsearch:
image: elasticsearch:6.8.23
restart: always
hostname: es-01
container_name: es
volumes:
- es_data:/usr/share/elasticsearch/data
- ./plugins:/usr/share/elasticsearch/plugins
- ./conf/es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ports:
- '9200:9200' #java、集群通信端口
- '9300:9300' #http通信端口
privileged: true #环境变量
networks:
sc_net:
ipv4_address: 172.16.220.15
health-cloud-search-center:
image: harbor.hw.jiankangyouyi.com:5000/search-center-public/search-center:v1.0
container_name: health-cloud-search-center
environment:
JAVA_OPTS:
stdin_open: true
volumes:
- ./secret_key:/run/secret/key:ro
tty: true
ports:
- "8004:9001"
#depends_on:
#- elasticsearch
networks:
sc_net:
ipv4_address: 172.16.220.16
volumes:
es_data:
driver_opts:
type: none
device: /docker/es/data
o: bind
networks:
sc_net:
ipam:
driver: default
config:
- subnet: "172.16.220.0/24"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment