services/registry/docker-compose.traefik.yml

15 lines
334 B
YAML

version: '3.8'
networks:
default:
name: ${TRAEFIK_NETWORK_NAME}
external: true
services:
registry:
labels:
traefik.enable: 'true'
traefik.docker.network: ${TRAEFIK_NETWORK_NAME}
traefik.http.routers.registry.rule: 'Host(`${REGISTRY_DOMAIN}`)'
traefik.http.routers.registry.entrypoints: 'web'