From f6578802ff7d22344cbc729445b6d35d3dee129e Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Wed, 31 Jul 2024 22:01:30 +0800 Subject: [PATCH] add compose --- docker/compose.yml | 19 ++++++ pom.xml | 67 +++++++++++++++++-- .../demo/controller/MainController.java | 6 +- 3 files changed, 87 insertions(+), 5 deletions(-) create mode 100644 docker/compose.yml diff --git a/docker/compose.yml b/docker/compose.yml new file mode 100644 index 0000000..92a0189 --- /dev/null +++ b/docker/compose.yml @@ -0,0 +1,19 @@ +version: '3.7' +name: demo-tomcat +services: + platfoem: + image: svn.youshengyun.com:9923/risenet-y9boot-webapp-platform-jvm:v9.7.0-SNAPSHOT + container_name: demo-tomcat01 + restart: always + extra_hosts: + - "host.docker.internal:host-gateway" + networks: + - y9-share-net + ports: + - "7199:7099" + environment: + - y9.login.casLoginView=casLoginView-y9-v3.0 + +networks: + y9-share-net: + external: true \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2f956bd..f6163aa 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ 21 - yyyy-MM-dd_HH_mm_ss + yyyyMMdd-HHmmss @@ -51,11 +51,24 @@ - demo-tomcat##${build.timestamp} + ${project.artifactId}##${buildNumber} org.springframework.boot spring-boot-maven-plugin + + + + build-info + + + + ${buildNumber} + ${java.version} + + + +