Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Last active November 1, 2025 13:35
Show Gist options
  • Select an option

  • Save arsalanses/d152612a21021645d7d587515717fef5 to your computer and use it in GitHub Desktop.

Select an option

Save arsalanses/d152612a21021645d7d587515717fef5 to your computer and use it in GitHub Desktop.
harbor registry
wget https://github.com/goharbor/harbor/releases/download/v2.14.0/harbor-online-installer-v2.14.0.tgz
tar xzvf harbor-online-installer-v2.14.0.tgz
cp harbor.yml.tmpl harbor.yml
nano harbor.yml.tmpl
hostname:
port: 8080
# https: // should comment out
external_url:
data_volume: /var/lib/docker/volumes/harbor-volume/_data
bash ./install.sh --with-trivy
Add traefik labels to the proxy service
docker compose up -d proxy
labels:
  - "traefik.enable=true"
  - "traefik.docker.network=web"
  - "traefik.http.routers.reg.entrypoints=http,https"
  - "traefik.http.routers.reg.rule=Host(`reg.example.com`)"
  - "traefik.http.routers.reg.tls.certresolver=letsencrypt"
  - "traefik.http.services.reg.loadbalancer.server.port=8080"
change password
uncheck library Project registry public
set Clean Up
review Configuration 

provider name endpointUrl
Docker Hub docker_hub https://hub.docker.com
Docker Registry gcr.io https://gcr.io
Docker Registry k8s.gcr.io https://k8s.gcr.io
Docker Registry quay.io https://quay.io

projectName accessLevel storageQuota proxyCache
proxy.docker.io Public -1 docker_hub-https://hub.docker.com
proxy.gcr.io Public -1 gcr.io-https://gcr.io
proxy.k8s.gcr.io Public -1 k8s.gcr.io-https://k8s.gcr.io
proxy.quay.io Public -1 quay.io-https://quay.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment