mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-04 23:17:45 +01:00
83bce02e61
Signed-off-by: AllForNothing <sshijun@vmware.com> Signed-off-by: AllForNothing <sshijun@vmware.com> |
||
---|---|---|
.. | ||
Dockerfile | ||
nginx.conf.example | ||
README.md |
Steps to deploy Harbor UI in a nginx container, it can be used for testing
- Go to docker-build dir
cd ./docker-build
- Copy
nginx.conf.example
tonginx.conf
, and modify nginx.conf file to specify an available back-end server
cp nginx.conf.example nginx.conf
location ~ ^/(api|c|chartrepo)/ { proxy_pass ${an available back-end server addr}; }
- Build harbor-ui image
docker build -f ./Dockerfile -t harbor-ui:test ./../../..
- Run harbor-ui image
docker run -p 8080:8080 harbor-ui:test
- Open your browser on http://localhost:8080