From a927389e036e7644207d7d21e1ac6822b3db8988 Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Mon, 30 Oct 2023 10:07:50 +0800 Subject: [PATCH] compose --- compose-demo01-jib.yml | 11 ++++------- compose-demo01-jvm.yml | 13 +++++-------- compose-demo01-native.yml | 11 ++++------- readme.txt | 6 +++--- 4 files changed, 16 insertions(+), 25 deletions(-) diff --git a/compose-demo01-jib.yml b/compose-demo01-jib.yml index 51cc2ee..383b712 100644 --- a/compose-demo01-jib.yml +++ b/compose-demo01-jib.yml @@ -1,8 +1,8 @@ version: '3.9' -name: demo01-jib +name: demo01 services: demo01-jib: - image: svn.youshengyun.com:9924/demo01-jib:1.0 + image: svn.youshengyun.com:9923/demo01-jib:1.0 container_name: demo01-jib restart: unless-stopped extra_hosts: @@ -15,11 +15,8 @@ services: 'server.servlet.context-path': '/demo01' labels: - "traefik.enable=true" - - "traefik.http.routers.demo01.entrypoints=web" - - "traefik.http.routers.demo01.rule=PathPrefix(`/demo01`)" - #- "traefik.http.services.demo01.loadbalancer.server.scheme=http" - #- "traefik.http.services.demo01.loadbalancer.server.port=7055" - #- "traefik.docker.network=y9-share-net" + - "traefik.http.routers.demo01-jib.entrypoints=web" + - "traefik.http.routers.demo01-jib.rule=PathPrefix(`/demo01`)" networks: y9-share-net: diff --git a/compose-demo01-jvm.yml b/compose-demo01-jvm.yml index 1a1b31b..f172b2a 100644 --- a/compose-demo01-jvm.yml +++ b/compose-demo01-jvm.yml @@ -1,8 +1,8 @@ version: '3.9' -name: demo01-jvm +name: demo01 services: demo01-jvm: - image: svn.youshengyun.com:9924/demo01-jvm:1.0 + image: svn.youshengyun.com:9923/demo01-jvm:1.0 container_name: demo01-jvm restart: unless-stopped extra_hosts: @@ -12,14 +12,11 @@ services: ports: - "17055:7055" environment: - 'server.servlet.context-path': '/demo02' + 'server.servlet.context-path': '/demo01' labels: - "traefik.enable=true" - - "traefik.http.routers.demo02.entrypoints=web" - - "traefik.http.routers.demo02.rule=PathPrefix(`/demo02`)" - #- "traefik.http.services.demo01.loadbalancer.server.scheme=http" - #- "traefik.http.services.demo01.loadbalancer.server.port=7055" - #- "traefik.docker.network=y9-share-net" + - "traefik.http.routers.demo01-jvm.entrypoints=web" + - "traefik.http.routers.demo01-jvm.rule=PathPrefix(`/demo01`)" networks: y9-share-net: diff --git a/compose-demo01-native.yml b/compose-demo01-native.yml index cdd6227..4fad11c 100644 --- a/compose-demo01-native.yml +++ b/compose-demo01-native.yml @@ -1,5 +1,5 @@ version: '3.9' -name: demo01-native +name: demo01 services: demo01-native: image: svn.youshengyun.com:9924/demo01-native:1.0 @@ -12,14 +12,11 @@ services: ports: - "27055:7055" environment: - 'server.servlet.context-path': '/demo03' + 'server.servlet.context-path': '/demo01' labels: - "traefik.enable=true" - - "traefik.http.routers.demo03.entrypoints=web" - - "traefik.http.routers.demo03.rule=PathPrefix(`/demo03`)" - #- "traefik.http.services.demo01.loadbalancer.server.scheme=http" - #- "traefik.http.services.demo01.loadbalancer.server.port=7055" - #- "traefik.docker.network=y9-share-net" + - "traefik.http.routers.demo01-native.entrypoints=web" + - "traefik.http.routers.demo01-native.rule=PathPrefix(`/demo01`)" networks: y9-share-net: diff --git a/readme.txt b/readme.txt index d6d2ab3..c14428a 100644 --- a/readme.txt +++ b/readme.txt @@ -4,9 +4,9 @@ docker image ls -docker run --name demo01-jib --net y9-share-net -ti -p 7055:7055 svn.youshengyun.com:9924/demo01-jib:1.0 -docker run --name demo01-jvm --net y9-share-net -ti -p 17055:7055 svn.youshengyun.com:9924/demo01-jvm:1.0 -docker run --name demo01-native --net y9-share-net -ti -p 27055:7055 svn.youshengyun.com:9924/demo01-native:1.0 +docker run --name demo01-jib --net y9-share-net -ti -p 7055:7055 svn.youshengyun.com:9923/demo01-jib:1.0 +docker run --name demo01-jvm --net y9-share-net -ti -p 17055:7055 svn.youshengyun.com:9923/demo01-jvm:1.0 +docker run --name demo01-native --net y9-share-net -ti -p 27055:7055 svn.youshengyun.com:9923/demo01-native:1.0 docker compose -f compose-demo01-jib.yml up -d docker compose -f compose-demo01-jvm.yml up -d