2023-10-17 19:48:45 +08:00
|
|
|
version: '3.9'
|
2023-10-29 19:48:16 +08:00
|
|
|
name: demo01-native
|
2023-10-17 19:48:45 +08:00
|
|
|
services:
|
2023-10-29 19:48:16 +08:00
|
|
|
demo01-native:
|
|
|
|
image: svn.youshengyun.com:9924/demo01-native:1.0
|
|
|
|
container_name: demo01-native
|
2023-10-17 19:48:45 +08:00
|
|
|
restart: unless-stopped
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
networks:
|
|
|
|
- y9-share-net
|
|
|
|
ports:
|
2023-10-29 19:48:16 +08:00
|
|
|
- "27055:7055"
|
|
|
|
environment:
|
|
|
|
'server.servlet.context-path': '/demo03'
|
2023-10-27 13:36:45 +08:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-10-29 19:48:16 +08:00
|
|
|
- "traefik.http.routers.demo03.entrypoints=web"
|
|
|
|
- "traefik.http.routers.demo03.rule=PathPrefix(`/demo03`)"
|
2023-10-27 13:36:45 +08:00
|
|
|
#- "traefik.http.services.demo01.loadbalancer.server.scheme=http"
|
|
|
|
#- "traefik.http.services.demo01.loadbalancer.server.port=7055"
|
|
|
|
#- "traefik.docker.network=y9-share-net"
|
2023-10-17 19:48:45 +08:00
|
|
|
|
|
|
|
networks:
|
|
|
|
y9-share-net:
|
|
|
|
external: true
|