2023-10-17 19:48:45 +08:00
|
|
|
version: '3.9'
|
2023-11-01 21:26:54 +08:00
|
|
|
name: demo01-jib
|
2023-10-17 19:48:45 +08:00
|
|
|
services:
|
2023-10-29 19:48:16 +08:00
|
|
|
demo01-jib:
|
2023-10-30 10:07:50 +08:00
|
|
|
image: svn.youshengyun.com:9923/demo01-jib:1.0
|
2023-10-29 19:48:16 +08:00
|
|
|
container_name: demo01-jib
|
2023-11-01 21:26:54 +08:00
|
|
|
hostname: demo01-jib
|
2023-10-17 19:48:45 +08:00
|
|
|
restart: unless-stopped
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
networks:
|
|
|
|
- y9-share-net
|
|
|
|
ports:
|
|
|
|
- "7055:7055"
|
2023-10-29 19:48:16 +08:00
|
|
|
environment:
|
|
|
|
'server.servlet.context-path': '/demo01'
|
2023-10-27 13:36:45 +08:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-10-30 10:07:50 +08:00
|
|
|
- "traefik.http.routers.demo01-jib.entrypoints=web"
|
|
|
|
- "traefik.http.routers.demo01-jib.rule=PathPrefix(`/demo01`)"
|
2023-11-02 11:16:55 +08:00
|
|
|
- "traefik.http.routers.demo01-jib.service=demo01"
|
2023-11-01 21:26:54 +08:00
|
|
|
- "traefik.http.services.demo01.loadbalancer.server.port=7055"
|
|
|
|
|
2023-11-02 11:16:55 +08:00
|
|
|
# Force TLS
|
|
|
|
- "traefik.http.routers.demo01-jib-ssl.tls=true"
|
2023-11-01 21:26:54 +08:00
|
|
|
- "traefik.http.routers.demo01-jib-ssl.entrypoints=web-ssl"
|
|
|
|
- "traefik.http.routers.demo01-jib-ssl.rule=PathPrefix(`/demo01`)"
|
2023-11-02 11:16:55 +08:00
|
|
|
- "traefik.http.routers.demo01-jib-ssl.service=demo01-ssl"
|
|
|
|
- "traefik.http.services.demo01-ssl.loadbalancer.server.port=7055"
|
2023-10-17 19:48:45 +08:00
|
|
|
|
|
|
|
networks:
|
|
|
|
y9-share-net:
|
|
|
|
external: true
|