记得上下班打卡 | git大法好,push需谨慎

Commit 7a893028 authored by wangyifan's avatar wangyifan

sweet 容器化

parent 4d7ac324
...@@ -6,5 +6,5 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone ...@@ -6,5 +6,5 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY target/liquidnet-service-sweet.jar / COPY target/liquidnet-service-sweet.jar /
EXPOSE 9008 EXPOSE 9008
ENTRYPOINT ["java", "-Dspring.profiles.active=test", "-jar", "/liquidnet-service-sweet.jar"] ENTRYPOINT ["java", "-jar", "/liquidnet-service-sweet.jar"]
...@@ -2,10 +2,17 @@ spring: ...@@ -2,10 +2,17 @@ spring:
application: application:
name: liquidnet-service-sweet name: liquidnet-service-sweet
profiles: profiles:
active: dev include: service-sweet
active: ${ACTIVE:test}
server: server:
tomcat: tomcat:
max-threads: 2000 max-threads: 2000
min-spare-threads: 200 min-spare-threads: 200
max-connections: 20000 max-connections: 20000
connection-timeout: 5000 connection-timeout: 5000
liquidnet:
security:
username: user
password: user123
eureka:
host: ${EUREKA_IP:127.0.0.1}:7001
\ No newline at end of file
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