docker-example-nginx-tomcat-mysql icon indicating copy to clipboard operation
docker-example-nginx-tomcat-mysql copied to clipboard

nginx 80 port no service available

Open ghost opened this issue 7 years ago • 5 comments

503 Service Temporarily Unavailable

503 Service Temporarily Unavailable


nginx/1.9.12

ghost avatar Mar 05 '17 07:03 ghost

You will need to leave a little more detail as to what you are trying to report

dmulligan avatar Mar 06 '17 19:03 dmulligan

Hi :) This is what I am experiencing after having composed your nice dockers... on an OSX sierra env.

  1. compose up (using port -p "90:80" because port 80 busy on my comp) - runs fine
  2. calling localhost:90 -> 503 - but this: very "quickly" ;) calling http://localhost:90/example-webapp -> same result 503

I have to say, that I never used nginx ... so I have first to learn ... but if you kindly could tell me what could be wrong here ...

seems the nginx config file be missing ... ?

Thanks

redskate avatar Jun 29 '17 15:06 redskate

Change the VIRTUAL_HOST in docker-compose.yml file for all the tomcat container to 'localhost' from 'mulligan....'. This will solve the issue

bom-sankar avatar Jul 11 '17 13:07 bom-sankar

Yes, you are right - thank you 👍

Meanwhile I do not use nginx at all, because I need stickiness, which is not avail. for free for nginx and after all a docker swarm can manage balancing.

redskate avatar Jul 11 '17 13:07 redskate

@redskate It will be great if you offer an example script or a link.

ahm507 avatar Jul 20 '17 13:07 ahm507