hostname:harborcloud.com#hostname配置,上面设置的 域名或者ip # http related config http: # 如果配置了https会重定向到https port:80 # https related config https: # https port for harbor, default is 443 port:443 # nginx配置证书和私钥 certificate:/data/cert/harborcloud.com.crt private_key:/data/cert/harborcloud.com.key # The initial password of Harbor admin # It only works in first time to install harbor # 这里是harbor的默认密码 harbor_admin_password:Harbor12345
# Harbor DB configuration database: # The password for the root user of Harbor DB. Change this before any production use. password:root123 # The maximum number of connections in the idle connection pool. If it <=0, no idle connections are retained. max_idle_conns:100 # The maximum number of open connections to the database. If it <= 0, then there is no limit on the number of open connections. # Note: the default number of connections is 1024 for postgres of harbor. max_open_conns:900
# 默认数据卷 data_volume:/data
六 安装
第一次安装
1
./install.sh
后面更改配置文件操作
1 2 3 4 5 6
# 运行启用 ./prepare #停止并删除现有实例。 docker-compose down -v # 重新启动港 docker-compose up -d
七 验证 HTTPS 连接
1 2 3 4 5 6 7 8
[root@localhost harbor]# docker login harborcloud.com Username: admin Password: WARNING! Your password will be stored unencrypted in/root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store