自建docker registry和ui

安装register和register-ui 通过docker-compose安装register和docker-register-ui version: "3" networks: registry: driver: bridge x-app: &common restart: always logging: driver: "json-file" options: max-size: "200k" max-file: "10" networks: - registry services: registry: <<: *common image: registry:2 container_name: registry volumes: - ./registry:/var/lib/registry environment: # 允许API访问和删除镜像 REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: '[https://registry.example.com]' REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]' REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials: '[true]' REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers: '[Authorization,Accept,Cache-Control]' REGISTRY_HTTP_HEADERS_Access-Control-Expose-Headers: '[Docker-Content-Digest]' # 通过摘要删除图像 blob 和清单 REGISTRY_STORAGE_DELETE_ENABLED: true # 定期从注册表的上传目录中删除孤立文件 REGISTRY_STORAGE_MAINTENANCE: |- uploadpurging: enabled: true age: 168h interval: 24h dryrun: false readonly: enabled: false ports: - 5000:5000 healthcheck: test: "wget -q --spider --proxy off 0.0.0.0:5000/v2 || exit 1" interval: 5s timeout: 10s retries: 10 registry-ui: <<: *common image: joxit/docker-registry-ui container_name: registry-ui environment: SINGLE_REGISTRY: true REGISTRY_TITLE: 'Docker Registry UI' DELETE_IMAGES: true SHOW_CONTENT_DIGEST: true NGINX_PROXY_PASS_URL: 'http://registry:5000' SHOW_CATALOG_NB_TAGS: true CATALOG_MIN_BRANCHES: 1 CATALOG_MAX_BRANCHES: 1 TAGLIST_PAGE_SIZE: 100 REGISTRY_SECURED: false CATALOG_ELEMENTS_LIMIT: 1000 ports: - 80:80 depends_on: registry: condition: service_healthy 通过docker-compose up -d启动容器。 ...

2024-01-12 · 2 分钟 · 646 字 · liweitao

自建Tabby-Web服务端同步

注册Github OAuth应用 访问https://github.com/settings/applications/new进行注册 ...

2023-12-27 · 1 分钟 · 441 字 · liweitao