Skip to content

Commit 3d58785

Browse files
authored
feat: add openim-docker design (#2)
1 parent 02e4c1d commit 3d58785

File tree

129 files changed

+39
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+39
-23
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ PASSWORD=openIM123
33
MINIO_ENDPOINT=http://127.0.0.1:10005
44
API_URL=http://127.0.0.1:10002
55
DATA_DIR=./
6+
CHAT_BRANCH=release-v1.2
7+
SERVER_BRANCH=release-v3.2

README_zh-CN.md

Lines changed: 24 additions & 10 deletions

docker-compose.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ services:
9999
command: minio server /data --console-address ':9090'
100100

101101
openim-server:
102-
# build: .
103-
image: ghcr.io/openimsdk/openim-server:release-v3.2
104-
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:release-v3.2
105-
# image: openim/openim-server:release-v3.2
102+
# image: ghcr.io/openimsdk/openim-server:${SERVER_BRANCH}
103+
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:${SERVER_BRANCH}
104+
image: openim/openim-server:${SERVER_BRANCH}
105+
# build: .
106106
container_name: openim-server
107107
volumes:
108-
- ./openim-server/logs:/openim/openim-server/logs
109-
- ./openim-server/config:/openim/openim-server/config
110-
- ./openim-server/scripts:/openim/openim-server/scripts
108+
- ./openim-server/${SERVER_BRANCH}/logs:/openim/openim-server/logs
109+
- ./openim-server/${SERVER_BRANCH}/config:/openim/openim-server/config
110+
- ./openim-server/${SERVER_BRANCH}/scripts:/openim/openim-server/scripts
111111
restart: always
112112
depends_on:
113113
- zookeeper
@@ -124,19 +124,19 @@ services:
124124
max-file: "2"
125125

126126
openim-chat:
127-
image: ghcr.io/openimsdk/openim-chat:release-v1.2
128-
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:release-v1.2
129-
# image: openim/openim-chat:release-v1.2
127+
# image: ghcr.io/openimsdk/openim-chat:${CHAT_BRANCH}
128+
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:${CHAT_BRANCH}
129+
image: ghcr.io/openimsdk/openim-chat:${CHAT_BRANCH}
130130
container_name: openim-chat
131131
healthcheck:
132132
test: ["CMD-SHELL", "./scripts/check-all.sh"]
133133
interval: 30s
134134
timeout: 10s
135135
retries: 5
136136
volumes:
137-
- ./openim-chat/logs:/openim/openim-chat/logs
138-
- ./openim-chat/config:/openim/openim-chat/config
139-
- ./openim-chat/scripts:/openim/openim-chat/scripts
137+
- ./openim-chat/${CHAT_BRANCH}/logs:/openim/openim-chat/logs
138+
- ./openim-chat/${CHAT_BRANCH}/config:/openim/openim-chat/config
139+
- ./openim-chat/${CHAT_BRANCH}/scripts:/openim/openim-chat/scripts
140140
restart: always
141141
user: root:root
142142
depends_on:
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)