Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
Privatisation_Deploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
tianye
Privatisation_Deploy
Commits
6527f2d1
Commit
6527f2d1
authored
Mar 01, 2022
by
tianye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1.0.1版本
parents
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
153 additions
and
0 deletions
+153
-0
install.ini
Deploy-search-center/install.ini
+6
-0
install.sh
Deploy-search-center/install.sh
+8
-0
application.yml
Deploy-search-center/search_center/conf/app/application.yml
+60
-0
elasticsearch.yml
Deploy-search-center/search_center/conf/es/elasticsearch.yml
+26
-0
docker-compose.yaml
Deploy-search-center/search_center/docker-compose.yaml
+52
-0
secret_key
Deploy-search-center/search_center/secret_key
+1
-0
No files found.
Deploy-search-center/install.ini
0 → 100644
View file @
6527f2d1
#!/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}
Deploy-search-center/install.sh
0 → 100644
View file @
6527f2d1
#!/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
Deploy-search-center/search_center/conf/app/application.yml
0 → 100755
View file @
6527f2d1
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
Deploy-search-center/search_center/conf/es/elasticsearch.yml
0 → 100755
View file @
6527f2d1
# 集群名称
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"] #本地只有一个节点,无法正常启动,先注释
Deploy-search-center/search_center/docker-compose.yaml
0 → 100644
View file @
6527f2d1
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"
Deploy-search-center/search_center/secret_key
0 → 100644
View file @
6527f2d1
password
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment