Docker Web Client - PARC-projects/video-query-home GitHub Wiki

The Web Client application is served in an NGNIX container. It is recommended that you either update the provided nginx.conf prior to building the container to suit your deployment needs, or you proxy external traffic coming from your own web-server to exposed endpoint provided by the container.

  1. Build the application (check settings in environment.prod.ts first, including the api url)
ng build --prod 
  1. Build the docker image
docker-compose build
  1. Launch containers
docker-compose up

For convenience, you can also run the following from npm.

  1. Build application & container
npm run build:docker
  1. Launch containers
npm run start:docker

Once the container is running, the application is exposed at http://localhost:3000