Files
macos-tools/harbor/harbor-stack/docker-compose.yml
2025-12-24 13:42:39 +08:00

21 lines
503 B
YAML

version: "3.9"
services:
registry-cache:
image: registry:2
container_name: registry-cache
restart: unless-stopped
ports:
- "5000:5000" # 对外暴露 5000
volumes:
- ./registry-cache/config.yml:/etc/docker/registry/config.yml:ro
- ./registry-cache/data:/var/lib/registry
networks:
- harbor-net
# Harbor 部分后面填,这里先占住网络
# harbor-core / portal 等会由脚本继续补全
networks:
harbor-net:
driver: bridge