Created
January 6, 2016 07:47
-
-
Save lackofdream/7b9f8a364cb0a009c594 to your computer and use it in GitHub Desktop.
Simple Nginx based file server on Docker
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name localhost; | |
| charset utf-8; | |
| location / { | |
| root /usr/share/nginx/html; | |
| autoindex on; | |
| } | |
| } |
This file contains hidden or 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 | |
| ADD default.conf /etc/nginx/conf.d/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment