Hi, just wondering if anyone has any experience deploying multi containers to Heroku and using nginx as a loadbalancer/reverse proxy. It keeps on crashing as it can’t find my worker container, I am just wondering if I need to passing a port or a url from the worker container to the nginx containre to make this work.
Here is the error:
nginx: [emerg] host not found in upstream "worker" in /etc/nginx/conf.d/default.conf:3
Here is the nginx config file:
upstream worker
{
server worker;
}
server
{
listen $PORT;
root /usr/share/nginx/html;
index index.html;
location /
{
try_files $uri /index.html;
}
location /api
{
proxy_pass http://worker;
}
}
Thanks for looking into this.