Commit 78b826fd by zhangxingmin

配置

parent f6270287
...@@ -5,4 +5,7 @@ ...@@ -5,4 +5,7 @@
<list /> <list />
</option> </option>
</component> </component>
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project> </project>
\ No newline at end of file
# 基础镜像
FROM openjdk:8
# 维护人
LABEL maintainer="zxm<2060197959@qq.com>"
# 创建目录
RUN mkdir -p /home/app
# 拷贝项目jar - 使用可执行的 fat JAR
COPY target/yd-ai-api-1.0-SNAPSHOT-exec.jar /home/app/yd-ai-api.jar
# 执行命令启动jar,并设置JVM内存参数
ENTRYPOINT ["java","-Duser.timezone=Asia/Shanghai", "-Xmx256m", "-Xms128m", "-jar", "/home/app/yd-ai-api.jar"]
# 暴露端口
EXPOSE 9478
...@@ -5,7 +5,7 @@ spring: ...@@ -5,7 +5,7 @@ spring:
--- ---
spring: spring:
application: application:
name: yd-product-api name: yd-ai-api
profiles: dev profiles: dev
main: main:
allow-bean-definition-overriding: true allow-bean-definition-overriding: true
...@@ -34,7 +34,7 @@ spring: ...@@ -34,7 +34,7 @@ spring:
--- ---
spring: spring:
application: application:
name: yd-product-api name: yd-ai-api
profiles: test profiles: test
main: main:
allow-bean-definition-overriding: true allow-bean-definition-overriding: true
...@@ -56,7 +56,7 @@ spring: ...@@ -56,7 +56,7 @@ spring:
group: YD_GROUP group: YD_GROUP
refresh: true refresh: true
extension-configs: # 扩展配置 extension-configs: # 扩展配置
- data-id: yd-product-api.yml - data-id: yd-ai-api.yml
group: YD_GROUP group: YD_GROUP
refresh: true refresh: true
# 发布到注册中心 (如果没有使用可以不配) # 发布到注册中心 (如果没有使用可以不配)
...@@ -71,7 +71,7 @@ spring: ...@@ -71,7 +71,7 @@ spring:
spring: spring:
profiles: prod profiles: prod
application: application:
name: yd-product-api name: yd-ai-api
server: server:
port: 9466 port: 9466
main: main:
...@@ -94,7 +94,7 @@ spring: ...@@ -94,7 +94,7 @@ spring:
group: YD_GROUP group: YD_GROUP
refresh: true refresh: true
extension-configs: # 扩展配置 extension-configs: # 扩展配置
- data-id: yd-product-api.yml - data-id: yd-ai-api.yml
group: YD_GROUP group: YD_GROUP
refresh: true refresh: true
# 发布到注册中心 (如果没有使用可以不配) # 发布到注册中心 (如果没有使用可以不配)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment