fix sdk部署时的环境变量问题

pull/141/head
ltf 4 years ago
parent f22a07fb29
commit aa1a176e82

@ -5,10 +5,10 @@ ENV WORKDIR /app
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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} 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} ENV WS_ENDPOINT ${WS_ENDPOINT}
ARG DB_DIR=../db/sdk/ ARG DB_DIR=../db/sdk/

@ -39,7 +39,7 @@ services:
- 30000:30000 # sdk必须开 - 30000:30000 # sdk必须开
environment: environment:
- "API_ENDPOINT=http://openim_api:10000" - "API_ENDPOINT=http://openim_api:10000"
- "WS_ENDPOINT=http://openim_msg_gateway:17778" - "WS_ENDPOINT=ws://openim_msg_gateway:17778"
volumes: volumes:
- ./logs:/app/logs - ./logs:/app/logs
- ./db/sdk:/app/db/sdk - ./db/sdk:/app/db/sdk

Loading…
Cancel
Save