Skip to content

Commit afc2c25

Browse files
committed
feat: add sh
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
1 parent 070855d commit afc2c25

File tree

7 files changed

+8730
-1
lines changed

7 files changed

+8730
-1
lines changed

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ services:
126126
openim-chat:
127127
# image: ghcr.io/openimsdk/openim-chat:release-v1.2
128128
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:release-v1.2
129-
image: openim/openim-chat:docker pull ghcr.io/openimsdk/openim-chat:main
129+
image: ghcr.io/openimsdk/openim-chat:main
130130
container_name: openim-chat
131131
healthcheck:
132132
test: ["CMD-SHELL", "./scripts/check-all.sh"]
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Copyright © 2023 OpenIM. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
#---------------Infrastructure configuration---------------------#
16+
etcd:
17+
etcdSchema: openim #默认即可
18+
etcdAddr: [ 127.0.0.1:2379 ] #单机部署时,默认即可
19+
userName:
20+
password:
21+
secret: openIM123
22+
23+
mysql:
24+
dbMysqlDatabaseName: admin_chat # 数据库名字 默认即可
25+
26+
# 默认管理员账号
27+
admin:
28+
defaultAccount:
29+
account: [ "admin1", "admin2" ]
30+
defaultPassword: [ "password1", "password2" ]
31+
openIMUserID: [ "openIM123456", "openIMAdmin" ]
32+
faceURL: [ "", "" ]
33+
nickname: [ "admin1", "admin2" ]
34+
level: [ 1, 100 ]
35+
36+
37+
adminapi:
38+
openImAdminApiPort: [ 10009 ] #管理后台api服务端口,默认即可,需要开放此端口或做nginx转发
39+
listenIP: 0.0.0.0
40+
41+
chatapi:
42+
openImChatApiPort: [ 10008 ] #登录注册,默认即可,需要开放此端口或做nginx转发
43+
listenIP: 0.0.0.0
44+
45+
rpcport: # rpc服务端口 默认即可
46+
openImAdminPort: [ 30200 ]
47+
openImChatPort: [ 30300 ]
48+
49+
50+
rpcregistername: #rpc注册服务名,默认即可
51+
openImChatName: Chat
52+
openImAdminCMSName: Admin
53+
54+
chat:
55+
codeTTL: 300 #短信验证码有效时间(秒)
56+
superVerificationCode: 666666 # 超级验证码
57+
alismsverify: #阿里云短信配置,在阿里云申请成功后修改以下四项
58+
accessKeyId:
59+
accessKeySecret:
60+
signName:
61+
verificationCodeTemplateCode:
62+
63+
64+
oss:
65+
tempDir: enterprise-temp # 临时密钥上传的目录
66+
dataDir: enterprise-data # 最终存放目录
67+
aliyun:
68+
endpoint: https://oss-cn-chengdu.aliyuncs.com
69+
accessKeyID: ""
70+
accessKeySecret: ""
71+
bucket: ""
72+
tencent:
73+
BucketURL: ""
74+
serviceURL: https://cos.COS_REGION.myqcloud.com
75+
secretID: ""
76+
secretKey: ""
77+
sessionToken: ""
78+
bucket: ""
79+
use: "minio"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright © 2023 OpenIM. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
#more datasource-compose.yaml
16+
apiVersion: 1
17+
18+
datasources:
19+
- name: Prometheus
20+
type: prometheus
21+
access: proxy
22+
orgId: 1
23+
url: http://127.0.0.1:9091
24+
basicAuth: false
25+
isDefault: true
26+
version: 1
27+
editable: true
868 KB
Binary file not shown.

0 commit comments

Comments
 (0)