title: Configuration of Angular2 application - nginx and docker
body: <p>I have a REST back-end service located on some server and front-end application made in angular. 
  I'm using Angular CLI to build application. Location of my back-end server is located in environment file.
  Requirement for my app is that I'm providing two docker images. One with my back-end server (Java Spring Boot app) and the second one is static html build with <code>ng build myApp</code> command. Then i copy content od <code>dist</code> directory to proper directory on docker image as is shown here <a href="https://hub.docker.com/_/nginx/" rel="nofollow noreferrer" title="nginx on dockerhub">Nginx docker image</a>.</p>
  
  <p>Problem is, that back-end and front-end may work on different servers. Is there any way i can configure my front-end app that i can change back-end server location as per start of container?</p>