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