demo01/compose-demo01.yml

24 lines
665 B
YAML
Raw Normal View History

2023-10-17 19:48:45 +08:00
version: '3.9'
name: demo01
services:
demo01:
image: docker.io/library/demo01:1.0
container_name: demo01
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- y9-share-net
ports:
- "7055:7055"
2023-10-27 13:36:45 +08:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.demo01.entrypoints=web"
- "traefik.http.routers.demo01.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"
2023-10-17 19:48:45 +08:00
networks:
y9-share-net:
external: true