FROM nginx:latest
COPY server.conf /etc/nginx/conf.d/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
upstream bundle {
server app;
server fallback backup;
}
server {
listen 80;
server_name localhost;
resolver 127.0.0.11;
location / {
proxy_pass http://bundle;
}
}
sudo docker run --name $DOCKER_CONTAINER_NAME -d --network dev -p 80:80 $DOCKER_IMAGE_LATEST
nginx: [emerg] host not found in upstream "app"