构建文件
parent
eaede930cc
commit
3b251f9745
|
@ -0,0 +1,20 @@
|
||||||
|
FROM registry.cn-hangzhou.aliyuncs.com/lrh-public/openjdk:8u222-jre-up
|
||||||
|
|
||||||
|
LABEL Author="axzsd" \
|
||||||
|
Email="atva725@qq.com" \
|
||||||
|
Description="创盈支付服务端"
|
||||||
|
|
||||||
|
ENV SPRING_PROFILES_ACTIVE="prod"
|
||||||
|
ENV JAVA_OPTIONS "-Xms4000m -Xmx4096m \
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError \
|
||||||
|
-Dfile.encoding=UTF-8 \
|
||||||
|
-Djava.awt.headless=true \
|
||||||
|
-Dsun.net.client.defaultConnectTimeout=10000 \
|
||||||
|
-Dsun.net.client.defaultReadTimeout=30000"
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /work/projects/yudao-server
|
||||||
|
COPY yudao-server/target/yudao-server.jar /opt/app.jar
|
||||||
|
|
||||||
|
EXPOSE 48080
|
||||||
|
ENTRYPOINT exec java $JAVA_OPTIONS -jar -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} /opt/app.jar
|
|
@ -0,0 +1,28 @@
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
yudao-server:
|
||||||
|
image: ${IMAGE_VERSION}
|
||||||
|
restart: always
|
||||||
|
privileged: true
|
||||||
|
container_name: yudao-server
|
||||||
|
environment:
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
SPRING_PROFILES_ACTIVE: prod
|
||||||
|
# volumes:
|
||||||
|
# - /opt/logs/cyywl:/work/projects/yudao-server
|
||||||
|
ulimits:
|
||||||
|
nproc: 65535
|
||||||
|
nofile:
|
||||||
|
soft: 20000
|
||||||
|
hard: 40000
|
||||||
|
ports:
|
||||||
|
- "48080:48080"
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 4096MB
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:48080/actuator/health"]
|
||||||
|
timeout: 30s
|
||||||
|
interval: 45s
|
||||||
|
retries: 3
|
Loading…
Reference in New Issue