Last active
May 9, 2020 07:10
-
-
Save tirthankarkundu17/8561a8d4932539e8c8ca7e216207d2a1 to your computer and use it in GitHub Desktop.
Docker File for NGINX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx | |
RUN rm /etc/nginx/conf.d/default.conf | |
COPY nginx.conf /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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