demo01/compose-demo01-native.yml

33 lines
1.1 KiB
YAML

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