mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
k8s
This commit is contained in:
parent
f324bb603d
commit
bc2a7b902e
@ -2,6 +2,7 @@ FROM ubuntu
|
|||||||
|
|
||||||
# 设置固定的项目路径
|
# 设置固定的项目路径
|
||||||
ENV WORKDIR /Open-IM-Server
|
ENV WORKDIR /Open-IM-Server
|
||||||
|
ENV CMDDIR $WORKDIR/cmd
|
||||||
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
||||||
|
|
||||||
|
|
||||||
@ -15,5 +16,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
|
|||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config", "/Open-IM-Server/script"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config", "/Open-IM-Server/script"]
|
||||||
|
|
||||||
|
|
||||||
WORKDIR $WORKDIR
|
WORKDIR $CMDDIR
|
||||||
CMD ./cmd/main
|
CMD ./main
|
||||||
|
@ -2,6 +2,7 @@ FROM ubuntu
|
|||||||
|
|
||||||
# 设置固定的项目路径
|
# 设置固定的项目路径
|
||||||
ENV WORKDIR /Open-IM-Server
|
ENV WORKDIR /Open-IM-Server
|
||||||
|
ENV CMDDIR $WORKDIR/cmd
|
||||||
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
||||||
|
|
||||||
# 将可执行文件复制到目标目录
|
# 将可执行文件复制到目标目录
|
||||||
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
|
|||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
|
||||||
|
|
||||||
|
|
||||||
WORKDIR $WORKDIR
|
WORKDIR $CMDDIR
|
||||||
CMD ./cmd/main
|
CMD ./main
|
||||||
|
@ -16,7 +16,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: api
|
- name: api
|
||||||
image: openim/api:v2.0.10k
|
image: openim/api:v2.0.10k
|
||||||
# imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 10002
|
- containerPort: 10002
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@ -42,3 +42,4 @@ spec:
|
|||||||
targetPort: 10002
|
targetPort: 10002
|
||||||
selector:
|
selector:
|
||||||
app: api
|
app: api
|
||||||
|
type: NodePort
|
@ -41,4 +41,5 @@ spec:
|
|||||||
port: 10006
|
port: 10006
|
||||||
targetPort: 10006
|
targetPort: 10006
|
||||||
selector:
|
selector:
|
||||||
app: cms-api
|
app: cms-api
|
||||||
|
type: NodePort
|
@ -41,4 +41,5 @@ spec:
|
|||||||
port: 10004
|
port: 10004
|
||||||
targetPort: 10004
|
targetPort: 10004
|
||||||
selector:
|
selector:
|
||||||
app: demo
|
app: demo
|
||||||
|
type: NodePort
|
@ -77,7 +77,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: demo
|
name: demo
|
||||||
port:
|
port:
|
||||||
number: 10004
|
number: 10004
|
||||||
path: /
|
path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
---
|
---
|
||||||
|
@ -45,5 +45,6 @@ spec:
|
|||||||
targetPort: ws-port
|
targetPort: ws-port
|
||||||
selector:
|
selector:
|
||||||
app: msg-gateway
|
app: msg-gateway
|
||||||
|
type: NodePort
|
||||||
|
|
||||||
|
|
@ -49,5 +49,6 @@ spec:
|
|||||||
targetPort: 10003
|
targetPort: 10003
|
||||||
selector:
|
selector:
|
||||||
app: sdk-server
|
app: sdk-server
|
||||||
|
type: NodePort
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user