mirror of
https://gitee.com/WuKongDev/WuKongIM.git
synced 2025-12-06 06:49:06 +08:00
33 lines
1.3 KiB
YAML
Executable File
33 lines
1.3 KiB
YAML
Executable File
version: '3.7'
|
||
services:
|
||
wukongim: # WuKongIM服务
|
||
image: registry.cn-shanghai.aliyuncs.com/wukongim/wukongim:v2
|
||
environment:
|
||
- "WK_CLUSTER_NODEID=1001"
|
||
- "WK_CLUSTER_SERVERADDR=xx.xx.xx.xx:11110" # 节点内部通信请求地址
|
||
- "WK_TRACE_PROMETHEUSAPIURL=http://prometheus:9090" # prometheus监控地址
|
||
- "WK_MODE=release" # release模式
|
||
- "WK_EXTERNAL_IP=xxx.xxx.xxx.xxx" # 服务器外网ip
|
||
- "WK_CLUSTER_APIURL=http://xx.xxx.xxx.xx:5001" # api的内网地址
|
||
- "WK_INTRANET_TCPADDR=xx.xx.xxx.xx:5100" # tcp连接的内网地址,此配置主要用于压测
|
||
healthcheck:
|
||
test: "wget -q -Y off -O /dev/null http://localhost:5001/health > /dev/null 2>&1"
|
||
interval: 10s
|
||
timeout: 10s
|
||
retries: 3
|
||
restart: always
|
||
volumes:
|
||
- ./wukongimdata:/root/wukongim # 数据挂载到物理机的目录
|
||
ports:
|
||
- 5001:5001 # http api 端口
|
||
- 5100:5100 # tcp端口
|
||
- 5200:5200 # websocket端口
|
||
- 5300:5300 # 管理端端口
|
||
- 5172:5172 # demo端口
|
||
- 11110:11110 # 分布式节点通讯端口
|
||
prometheus: # 监控服务
|
||
image: registry.cn-shanghai.aliyuncs.com/wukongim/prometheus:v2.53.1
|
||
volumes:
|
||
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
|
||
ports:
|
||
- "9090:9090" |