compose
This commit is contained in:
parent
c778bd5291
commit
a927389e03
|
@ -1,8 +1,8 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
name: demo01-jib
|
name: demo01
|
||||||
services:
|
services:
|
||||||
demo01-jib:
|
demo01-jib:
|
||||||
image: svn.youshengyun.com:9924/demo01-jib:1.0
|
image: svn.youshengyun.com:9923/demo01-jib:1.0
|
||||||
container_name: demo01-jib
|
container_name: demo01-jib
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
@ -15,11 +15,8 @@ services:
|
||||||
'server.servlet.context-path': '/demo01'
|
'server.servlet.context-path': '/demo01'
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.demo01.entrypoints=web"
|
- "traefik.http.routers.demo01-jib.entrypoints=web"
|
||||||
- "traefik.http.routers.demo01.rule=PathPrefix(`/demo01`)"
|
- "traefik.http.routers.demo01-jib.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"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
y9-share-net:
|
y9-share-net:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
name: demo01-jvm
|
name: demo01
|
||||||
services:
|
services:
|
||||||
demo01-jvm:
|
demo01-jvm:
|
||||||
image: svn.youshengyun.com:9924/demo01-jvm:1.0
|
image: svn.youshengyun.com:9923/demo01-jvm:1.0
|
||||||
container_name: demo01-jvm
|
container_name: demo01-jvm
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
@ -12,14 +12,11 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "17055:7055"
|
- "17055:7055"
|
||||||
environment:
|
environment:
|
||||||
'server.servlet.context-path': '/demo02'
|
'server.servlet.context-path': '/demo01'
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.demo02.entrypoints=web"
|
- "traefik.http.routers.demo01-jvm.entrypoints=web"
|
||||||
- "traefik.http.routers.demo02.rule=PathPrefix(`/demo02`)"
|
- "traefik.http.routers.demo01-jvm.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"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
y9-share-net:
|
y9-share-net:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
name: demo01-native
|
name: demo01
|
||||||
services:
|
services:
|
||||||
demo01-native:
|
demo01-native:
|
||||||
image: svn.youshengyun.com:9924/demo01-native:1.0
|
image: svn.youshengyun.com:9924/demo01-native:1.0
|
||||||
|
@ -12,14 +12,11 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "27055:7055"
|
- "27055:7055"
|
||||||
environment:
|
environment:
|
||||||
'server.servlet.context-path': '/demo03'
|
'server.servlet.context-path': '/demo01'
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.demo03.entrypoints=web"
|
- "traefik.http.routers.demo01-native.entrypoints=web"
|
||||||
- "traefik.http.routers.demo03.rule=PathPrefix(`/demo03`)"
|
- "traefik.http.routers.demo01-native.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"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
y9-share-net:
|
y9-share-net:
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
docker image ls
|
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-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:9924/demo01-jvm: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:9924/demo01-native: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-jib.yml up -d
|
||||||
docker compose -f compose-demo01-jvm.yml up -d
|
docker compose -f compose-demo01-jvm.yml up -d
|
||||||
|
|
Loading…
Reference in New Issue