Open link in a new tab

Content

Expand project menu

Passenger starting different port always and apache proxy only proxying to 8080

Hi,

I see that with docker run in my local workstation it  is fine, but when deploying it to a DC/OS cluster , the passenger process is listening every time on a different port:

app         104  1.3  0.1 234748 24472 ?        Sl   09:23   0:00 /usr/local/bundle/bin/passenger start -p 14556 -a 0.0.0.0 --min-instances 1 --max-pool-size 3 --spawn-method smart --nginx-config-template docker/nginx.conf.erb --max-preloader-idle-time 0

oot@d60131c113ec:/usr/src/app# cat /etc/apache2/sites-enabled/openproject.conf 
<VirtualHost *:80>
 ServerName _default_
 DocumentRoot /usr/src/app/public

 ProxyRequests off

 <Location />
   ProxyPass http://127.0.0.1:8080/ retry=0
   ProxyPassReverse http://127.0.0.1:8080/
 </Location>
</VirtualHost>

How can I sort this out?

Best