<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: EasyTravel Docker Access FrontEnd in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/EasyTravel-Docker-Access-FrontEnd/m-p/57604#M890</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I looked into this problem and I have a few ideas.&lt;/P&gt;&lt;P&gt;Most probably the "dynatrace/easytravel-frontend" container has failed and that is why you get the 502 Bad Gateway error. You can make sure by running the "docker ps -a" command and checking the status of "frontend" container. If that is so, I suggest to recreate all the containers: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;stop and remove all containers - "docker-compose down"&lt;/LI&gt;&lt;LI&gt;create and start all containers - "docker-compose up"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The easyTravel images that you are using are probably the older ones with the version of 6.3. I suggest to upgrade to 7.1 - they use newer easyTravel and fix some bugs.&lt;/P&gt;&lt;P&gt;One more suggestion is to use the correct ports forwarded by docker. When you run "docker ps" command you will see which ports are forwarded to each components. In this case when we want to access "frontend", you will want to access either "nginx" or "frontend", with ports of 1118 and 1117 in following example:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/17236-docker-ps.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 11:33:08 GMT</pubDate>
    <dc:creator>tomasz_wieremje</dc:creator>
    <dc:date>2018-06-22T11:33:08Z</dc:date>
    <item>
      <title>EasyTravel Docker Access FrontEnd</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/EasyTravel-Docker-Access-FrontEnd/m-p/57603#M889</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have downloaded&lt;BR /&gt;EasyTravel docker images from GitHub ( &lt;A href="https://github.com/dynatrace-innovationlab/easyTravel-Docker"&gt;https://github.com/dynatrace-innovationlab/easyTravel-Docker&lt;/A&gt;&lt;BR /&gt;). I unziped them and run docker.compose up&lt;BR /&gt;from a AWS ec2 machine. &lt;/P&gt;&lt;P&gt;I am able to access&lt;BR /&gt;via browser to Axis2 Services configuration, MongoDB port but when I access to&lt;BR /&gt;8080 port (NGINX Proxy) y get a 502 Bad Gateway error message. As 8080 port is&lt;BR /&gt;used for frontend and backend i don't know if it is nedded to to type the Frontend&lt;BR /&gt;and Backend Context App, I mean, something like this: &lt;A href="http://ec2:8080/easyTravelFrontend/"&gt;http://ec2:8080/easyTravelFrontend/&lt;/A&gt;.&lt;BR /&gt;Please, could you help me?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 08:28:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/EasyTravel-Docker-Access-FrontEnd/m-p/57603#M889</guid>
      <dc:creator>ajdimanuel</dc:creator>
      <dc:date>2018-03-06T08:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: EasyTravel Docker Access FrontEnd</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/EasyTravel-Docker-Access-FrontEnd/m-p/57604#M890</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I looked into this problem and I have a few ideas.&lt;/P&gt;&lt;P&gt;Most probably the "dynatrace/easytravel-frontend" container has failed and that is why you get the 502 Bad Gateway error. You can make sure by running the "docker ps -a" command and checking the status of "frontend" container. If that is so, I suggest to recreate all the containers: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;stop and remove all containers - "docker-compose down"&lt;/LI&gt;&lt;LI&gt;create and start all containers - "docker-compose up"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The easyTravel images that you are using are probably the older ones with the version of 6.3. I suggest to upgrade to 7.1 - they use newer easyTravel and fix some bugs.&lt;/P&gt;&lt;P&gt;One more suggestion is to use the correct ports forwarded by docker. When you run "docker ps" command you will see which ports are forwarded to each components. In this case when we want to access "frontend", you will want to access either "nginx" or "frontend", with ports of 1118 and 1117 in following example:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/17236-docker-ps.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 11:33:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/EasyTravel-Docker-Access-FrontEnd/m-p/57604#M890</guid>
      <dc:creator>tomasz_wieremje</dc:creator>
      <dc:date>2018-06-22T11:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: EasyTravel Docker Access FrontEnd</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/EasyTravel-Docker-Access-FrontEnd/m-p/57605#M891</link>
      <description>&lt;P&gt;Here is what I did on Ubuntu to allow access to easyTravel running in docker.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;#!/bin/bash &lt;BR /&gt;docker inspect --format '{{ .NetworkSettings.IPAddress }}' www&lt;BR /&gt;&lt;BR /&gt;export DWWW=`sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' www`&lt;BR /&gt;&lt;BR /&gt;echo $DWWW&lt;BR /&gt;&lt;BR /&gt;sudo -E bash -c 'export DWWW=$DWWW'&lt;BR /&gt;&lt;BR /&gt;sudo iptables -t nat -A POSTROUTING --source $DWWW --destination $DWWW -p tcp --dport 80 -j MASQUERADE&lt;BR /&gt;&lt;BR /&gt;sudo iptables -t nat -A DOCKER ! -i docker0 --source 0.0.0.0/0 --destination 0.0.0.0/0 -p tcp --dport 80  -j DNAT --to $DWWW&lt;BR /&gt;&lt;BR /&gt;sudo iptables -A DOCKER ! -i docker0 -o docker0 --source 0.0.0.0/0 --destination $DWWW -p tcp --dport 80 -j ACCEPT&lt;/P&gt;&lt;P&gt;I put this in a script and run it after the docker-compose up.&lt;/P&gt;&lt;P&gt;I do it this way because the docker ip for the www instance can change and you need to know this for the iptables.  &lt;/P&gt;&lt;P&gt;You would need to run the above as sudo&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Dec 2018 18:01:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/EasyTravel-Docker-Access-FrontEnd/m-p/57605#M891</guid>
      <dc:creator>jeffery_yarbrou</dc:creator>
      <dc:date>2018-12-09T18:01:56Z</dc:date>
    </item>
  </channel>
</rss>

