Skip to content

Instantly share code, notes, and snippets.

@tirthankarkundu17
Last active May 9, 2020 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tirthankarkundu17/8561a8d4932539e8c8ca7e216207d2a1 to your computer and use it in GitHub Desktop.
Save tirthankarkundu17/8561a8d4932539e8c8ca7e216207d2a1 to your computer and use it in GitHub Desktop.
Docker File for NGINX
FROM nginx
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
upstream loadbalancer {
server <ip>:8088;
server <ip>:8089;
}
server {
location / {
proxy_pass http://loadbalancer;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment