mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-03 18:52:15 +08:00
fix sdk部署时的环境变量问题
This commit is contained in:
parent
5f3bb84255
commit
fe900251ef
@ -5,10 +5,10 @@ ENV WORKDIR /app
|
||||
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
||||
|
||||
# 定义环境变量
|
||||
ARG API_ENDPOINT=0.0.0.0:10000
|
||||
ARG API_ENDPOINT=http://0.0.0.0:10000
|
||||
ENV API_ENDPOINT ${API_ENDPOINT}
|
||||
|
||||
ARG WS_ENDPOINT=0.0.0.0:17778
|
||||
ARG WS_ENDPOINT=ws://0.0.0.0:17778
|
||||
ENV WS_ENDPOINT ${WS_ENDPOINT}
|
||||
|
||||
ARG DB_DIR=../db/sdk/
|
||||
|
||||
@ -39,7 +39,7 @@ services:
|
||||
- 30000:30000 # sdk,必须开
|
||||
environment:
|
||||
- "API_ENDPOINT=http://openim_api:10000"
|
||||
- "WS_ENDPOINT=http://openim_msg_gateway:17778"
|
||||
- "WS_ENDPOINT=ws://openim_msg_gateway:17778"
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
- ./db/sdk:/app/db/sdk
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user