Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhaominxu
Open-IM-Server
提交
f8933912
O
Open-IM-Server
项目概览
zhaominxu
/
Open-IM-Server
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Open-IM-Server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f8933912
编写于
7月 15, 2021
作者:
落凡尘.
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docker-compose.yaml update
上级
14228b50
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
55 addition
and
44 deletion
+55
-44
docker-compose.yaml
docker-compose.yaml
+55
-44
未找到文件。
docker-compose.yaml
浏览文件 @
f8933912
version
:
"
3"
#fixme Clone openIM Server project before using docker-compose,project address:https://github.com/OpenIMSDK/Open-IM-Server.git
services
:
mysql
:
...
...
@@ -8,17 +9,21 @@ services:
container_name
:
mysql
volumes
:
-
/home/mysql/data:/var/lib/mysql
-
/etc/localtime:/etc/localtime
environment
:
MYSQL_ROOT_PASSWORD
:
"
123456"
TZ
:
Asia/Shanghai
restart
:
always
mongodb
:
image
:
mongo
:latest
image
:
mongo
ports
:
-
27017:27017
container_name
:
mongo
volumes
:
-
/home/mongodb/data:/data/db
environment
:
TZ
:
Asia/Shanghai
restart
:
always
redis
:
...
...
@@ -28,7 +33,14 @@ services:
container_name
:
redis
volumes
:
-
/home/redis/data:/data
-
/home/redis/config/redis.conf:/usr/local/redis/config/redis.conf
environment
:
TZ
:
Asia/Shanghai
restart
:
always
sysctls
:
net.core.somaxconn
:
1024
command
:
'
redis-server
/usr/local/redis/config/redis.conf'
zookeeper
:
image
:
wurstmeister/zookeeper
...
...
@@ -37,6 +49,8 @@ services:
container_name
:
zookeeper
volumes
:
-
/etc/localtime:/etc/localtime
environment
:
TZ
:
Asia/Shanghai
restart
:
always
...
...
@@ -45,69 +59,66 @@ services:
ports
:
-
9092:9092
container_name
:
kafka
volumes
:
-
/etc/localtime:/etc/localtime
restart
:
always
environment
:
KAFKA_BROKER_ID
:
"
0"
KAFKA_ZOOKEEPER_CONNECT
:
"
127.0.0.1:2181"
KAFKA_ADVERTISED_LISTENERS
:
"
PLAINTEXT://127.0.0.1:9092"
KAFKA_LISTENERS
:
"
PLAINTEXT://0.0.0.0:9092"
TZ
:
Asia/Shanghai
KAFKA_BROKER_ID
:
0
KAFKA_ZOOKEEPER_CONNECT
:
127.0.0.1:2181
KAFKA_ADVERTISED_LISTENERS
:
PLAINTEXT://127.0.0.1:9092
KAFKA_LISTENERS
:
PLAINTEXT://0.0.0.0:9092
depends_on
:
-
zookeeper
etcd
:
image
:
quay.io/coreos/etcd
:v3.2.32
image
:
quay.io/coreos/etcd
ports
:
-
2379:2379
-
2380:2380
container_name
:
etcd-v3.2.32
container_name
:
etcd
volumes
:
-
/etc/localtime:/etc/localtime
environment
:
ETCDCTL_API
:
3
TZ
:
Asia/Shanghai
restart
:
always
command
:
-
"
/usr/local/bin/etcd"
-
"
--name
s1"
-
"
--data-dir
/etcd-data"
-
"
--listen-client-urls
http://0.0.0.0:2379"
-
"
--advertise-client-urls
http://0.0.0.0:2379"
-
"
--listen-peer-urls
http://0.0.0.0:2380"
-
"
--initial-advertise-peer-urls
http://0.0.0.0:2380"
-
"
--initial-cluster
s1=http://0.0.0.0:2380"
-
"
--initial-cluster-token
tkn"
-
"
--initial-cluster-state
new"
command
:
/usr/local/bin/etcd --name etcd0 --data-dir /etcd-data --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://0.0.0.0:2379 --listen-peer-urls http://0.0.0.0:2380 --initial-advertise-peer-urls http://0.0.0.0:2380 --initial-cluster etcd0=http://0.0.0.0:2380 --initial-cluster-token tkn --initial-cluster-state new
#fixme-----build from dockerfile---------
# open-im-server:
# image: open_im_server
# ports:
# - 10000:10000
# - 17778:17778
# container_name: open-im-server
# volumes:
# - /home/Open-IM-server/logs:/home/open_im_server/logs
# - /home/Open-IM-server/config/config.yaml:/home/open_im_server/config/config.yaml
# restart: always
# build:
# context: .
# dockerfile: deploy.Dockerfile
# depends_on:
# - mysql
# - mongodb
# - redis
# - kafka
# - etcd
#fixme----build from docker hub------
open-im-server
:
image
:
lyt1123/open_im_server
:1.2
image
:
lyt1123/open_im_server
ports
:
-
10000:10000
-
17778:17778
container_name
:
open-im-server
volumes
:
-
/home/
open_im_
server/logs:/home/open_im_server/logs
-
/home/
open_im_
server/config/config.yaml:/home/open_im_server/config/config.yaml
-
/home/
Open-IM-
server/logs:/home/open_im_server/logs
-
/home/
Open-IM-
server/config/config.yaml:/home/open_im_server/config/config.yaml
restart
:
always
depends_on
:
-
kafka
-
mysql
-
mongodb
-
redis
-
kafka
-
etcd
#fixme build from dockerfile
# open-im-server:
# ports:
# - 10000:10000
# - 17778:17778
# volumes:
# - /home/open_im_server/logs:/home/open_im_server/logs
# - /home/open_im_server/config/config.yaml:/home/open_im_server/config/config.yaml
# restart: always
# build:
# context: .
# dockerfile: deploy.Dockerfile
# depends_on:
# - mysql
# - mongodb
# - redis
# - kafka
# - etcd
-
etcd
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录