33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
version: '3.9'
|
|
name: demo01-jvm
|
|
services:
|
|
demo01-jvm:
|
|
image: svn.youshengyun.com:9923/demo01-jvm:1.0
|
|
container_name: demo01-jvm
|
|
hostname: demo01-jvm
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
networks:
|
|
- y9-share-net
|
|
ports:
|
|
- "17055:7055"
|
|
environment:
|
|
'server.servlet.context-path': '/demo01'
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.demo01-jvm.entrypoints=web"
|
|
- "traefik.http.routers.demo01-jvm.rule=PathPrefix(`/demo01`)"
|
|
- "traefik.http.routers.demo01-jvm.service=demo01"
|
|
- "traefik.http.services.demo01.loadbalancer.server.port=7055"
|
|
|
|
# Force TLS
|
|
- "traefik.http.routers.demo01-jvm-ssl.tls=true"
|
|
- "traefik.http.routers.demo01-jvm-ssl.entrypoints=web-ssl"
|
|
- "traefik.http.routers.demo01-jvm-ssl.rule=PathPrefix(`/demo01`)"
|
|
- "traefik.http.routers.demo01-jvm-ssl.service=demo01-ssl"
|
|
- "traefik.http.services.demo01-ssl.loadbalancer.server.port=7055"
|
|
|
|
networks:
|
|
y9-share-net:
|
|
external: true |