Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HAProxy server listens on port 8443 and it forwards each request to Resource service or Traversal service. 


draw.io Diagram
bordertrue
diagramNameAAI Local Dev Env
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth341
revision1

Step-by-step guide

  1. Download  haproxy.cfgaai.pemDockerfile
  2. Locate 3 files above in the same directory
  3. In your terminal type `$ docker build -t haproxy . `
  4. Run the HAProxy docker image by `$docker run -d -p 8443:8443 -p 8080:8080 --name my-haproxy haproxy`
  5. visit http://localhost:8080/stats to verify your HAProxy up and running

   

The only difference from haproxy.cfg file for Linux is 

< server aai-resources.api.simpledemo.openecomp.org aai-resources.api.simpledemo.openecomp.org:8447 port 8447 ssl verify none
=============================================
> server host.docker.internal host.docker.internal:8447 port 8447 ssl verify none

https://hub.docker.com/_/haproxy

...