OpenResty nginx.conf / default.conf for Docker Cloud
jgwerner opened this issue · 1 comments
I forked your repo and added a folder with a Dockerfile, along with your cloned ruby files, for OpenResty 1.9.7.3, located in openresty folder.
I ran your version without any trouble in Docker Cloud. However, when running version with OpenResty (conceivably not much should change) I'm having trouble obtaining the proper configuration settings for ../nginx/nginx.conf and ../nginx/conf.d/default.conf, seems like the default configuration file is not there and does not have the include
statement. Fortunately, the log file outputs messages where I can see that the upstream servers are resolving correctly. So no issues with nginx.conf.erb
and dockercloud.rb
, just not sure how you got the first part of /etc/nginx/nginx.conf customized with the include statement since the FROM directive in your Dockerfile seems to pull from the standard Nginx 1.9.0 image.
For OpenResty image, I based Dockerfile in large part from ficusio/openresty, which I also ran without any issues in Docker Cloud (although it doesn't provide service discovery out of the box).
Any ideas on how this could be configured?
Once it's fixed I'll send you a PR.
Never mind, seems to be working now. Consolidated all configs into nginx.conf.erb
. Re committing and sending PR.