Harbor on Ubuntu 20.04

Allgemein
  • Install Docker
  • Download Offline Installer https://goharbor.io/docs/1.10/install-config/download-installer/ ) or use quick installation script. but it will fail until you configure harbor.yml, but it will install docker and this stuff.
./install.sh --with-clair
  • Edit harbor.yml
  • Install certbot with snap
  • configure ssl in harbor.yml
# https related config
https:
  # https port for harbor, default is 443
  port: 443
  # The path of cert and key files for nginx
  certificate: /etc/letsencrypt/live/reg.domain.com/fullchain.pem
  private_key: /etc/letsencrypt/live/reg.domain.com/privkey.pem  
  • use ./prepare to update config files in docker.

#Stop Harbor
docker-compose down -v

#Restart Harbor inside harbor folder
docker-compose up -d