Harbor 自定义非 80 443端口
【摘要】
For HTTP protocol
1.Modify docker-compose.yml Replace the first "80" to a customized port, e.g. 8888:80.
proxy: image: goharbor/nginx-photon:v1.6.0 container_nam...
For HTTP protocol
1.Modify docker-compose.yml
Replace the first "80" to a customized port, e.g. 8888:80.
-
proxy:
-
image: goharbor/nginx-photon:v1.6.0
-
container_name: nginx
-
restart: always
-
volumes:
-
- ./common/config/nginx:/etc/nginx:z
-
ports:
-
- 8888:80
-
- 443:443
-
depends_on:
-
- postgresql
-
- registry
-
- core
-
- portal
-
- log
-
logging:
-
driver: "syslog"
-
options:
-
syslog-address: "tcp://127.0.0.1:1514"
-
tag: "proxy"
2.Modify harbor.cfg, add the port to the parameter "hostname"
hostname = 192.168.0.2:8888
文章来源: blog.csdn.net,作者:隔壁老瓦,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/wxb880114/article/details/85700153
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)