Overview

Full name
docker.io/openim/openim-msggateway
Registry
docker.io
Namespace
openim
Repository
openim-msggateway
Cached tags
91
Last synced
07/06/2026, 07:24 AM

Introduction

OpenIM 即时通讯消息网关镜像,维护 WebSocket 长连接与消息路由,需与 OpenIM 核心服务同网段集群部署。

Details

openim/openim-msggateway 处理客户端 WebSocket 接入、心跳与消息转发至 OpenIM RPC 层。定位为 IM 网关 HTTP/WebSocket 服务,需 Redis/Kafka 与 openim-api 同栈;K8s Deployment 多副本 + Service 负载均衡。

快速启动

docker run -d --name openim-msggateway \
  -p 10001:10001 \
  -e OPENIM_API_URL=http://openim-api:10002 \
  docker.io/openim/openim-msggateway:latest

推荐实践

docker run -d --name openim-msggateway \
  --restart unless-stopped \
  -p 10001:10001 \
  -e OPENIM_API_URL=http://openim-api:10002 \
  -e REDIS_ADDRESS=redis:6379 \
  docker.io/openim/openim-msggateway:v3.8.0

核心参数说明

  • -p 10001:10001 — WebSocket 网关端口
  • -e OPENIM_API_URL — 核心 API 地址
  • -e REDIS_ADDRESS — 会话状态 Redis
  • 固定 tag — OpenIM 栈 pin

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: openim-msggateway
spec:
  replicas: 3
  selector:
    matchLabels:
      app: openim-msggateway
  template:
    metadata:
      labels:
        app: openim-msggateway
    spec:
      containers:
        - name: msggateway
          image: docker.io/openim/openim-msggateway:v3.8.0
          ports:
            - containerPort: 10001
          envFrom:
            - configMapRef:
                name: openim-config
---
apiVersion: v1
kind: Service
metadata:
  name: openim-msggateway
spec:
  selector:
    app: openim-msggateway
  ports:
    - port: 10001
      targetPort: 10001

Ingress WebSocket 升级;Redis 独立 Service。

Latest tags (20)

View all 91 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/openim/openim-msggateway
:sha-68cb6f425c2b
linux/amd64linux/arm64
2026/07/06 12:5423.5 MBsha256:c0e5550ca9e3
docker.io/openim/openim-msggateway
:release-v3.8.3-patch.servertest-targetbranch.hephaestus.20260706032134.25985
linux/amd64linux/arm64
2026/07/06 12:5423.5 MBsha256:c0e5550ca9e3
docker.io/openim/openim-msggateway
:3.8.3-patch.servertest-targetbranch.hephaestus.20260706032134.25985
linux/amd64linux/arm64
2026/07/06 12:5423.5 MBsha256:c0e5550ca9e3
docker.io/openim/openim-msggateway
:v3.8.3-patch.servertest-targetbranch.hephaestus.20260706032134.25985
linux/amd64linux/arm64
2026/07/06 12:5423.5 MBsha256:c0e5550ca9e3
docker.io/openim/openim-msggateway
:sha-915fcaa52c98
linux/amd64linux/arm64
2026/07/03 19:3123.5 MBsha256:2cee5df838d6
docker.io/openim/openim-msggateway
:release-v3.8.3-patch.servertest-ghcrtest.hephaestus.20260703100016.102498336
linux/amd64linux/arm64
2026/07/03 19:3123.5 MBsha256:2cee5df838d6
docker.io/openim/openim-msggateway
:3.8.3-patch.servertest-ghcrtest.hephaestus.20260703100016.102498336
linux/amd64linux/arm64
2026/07/03 19:3123.5 MBsha256:2cee5df838d6
docker.io/openim/openim-msggateway
:v3.8.3-patch.servertest-ghcrtest.hephaestus.20260703100016.102498336
linux/amd64linux/arm64
2026/07/03 19:3123.5 MBsha256:2cee5df838d6
docker.io/openim/openim-msggateway
:sha-748d783d36fc
linux/amd64linux/arm64
2025/05/21 12:4842.1 MBsha256:0c0e4bc59daf
docker.io/openim/openim-msggateway
:v3.8.3-patch
linux/amd64linux/arm64
2025/05/21 12:4842.1 MBsha256:0c0e4bc59daf
docker.io/openim/openim-msggateway
:main
linux/arm64linux/amd64
2025/05/21 12:4740.4 MBsha256:cfec8684ddca
docker.io/openim/openim-msggateway
:sha-7b02b4b
linux/amd64linux/arm64
2024/12/30 12:1441.0 MBsha256:9378d2231090
docker.io/openim/openim-msggateway
:v3.8.3-alpha.3-test1
linux/amd64linux/arm64
2024/12/30 12:1441.0 MBsha256:9378d2231090
docker.io/openim/openim-msggateway
:sha-fc94eed
linux/amd64linux/arm64
2024/03/08 16:5613.1 MBsha256:f75dbd9d13cf
docker.io/openim/openim-msggateway
:release-v3.6
linux/amd64linux/arm64
2024/03/08 16:5613.1 MBsha256:f75dbd9d13cf
docker.io/openim/openim-msggateway
:sha-a534134
linux/amd64linux/arm64
2024/03/08 14:4813.1 MBsha256:39c942104463
docker.io/openim/openim-msggateway
:sha-5282ab9
linux/amd64linux/arm64
2024/03/08 12:4913.1 MBsha256:7a77e0a30ccc
docker.io/openim/openim-msggateway
:sha-a1f0eb2
linux/amd64linux/arm64
2024/03/08 10:2513.1 MBsha256:6db1bd33642b
docker.io/openim/openim-msggateway
:nightly
linux/amd64linux/arm64
2024/03/08 10:2513.1 MBsha256:6db1bd33642b
docker.io/openim/openim-msggateway
:sha-bd31f6b
linux/amd64linux/arm64
2024/03/08 09:4213.1 MBsha256:4bbb0d2bfa59