Back to Harbor

README

src/portal/docker-build/README.md

2.15.0574 B
Original Source

Steps to deploy Harbor UI in a nginx container, it can be used for testing

  1. Go to docker-build dir

cd ./docker-build

  1. Copy nginx.conf.example to nginx.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}; }

  1. Build harbor-ui image

docker build -f ./Dockerfile -t harbor-ui:test ./../../..

  1. Run harbor-ui image

docker run -p 8080:8080 harbor-ui:test

  1. Open your browser on http://localhost:8080