Last active
November 21, 2018 10:39
-
-
Save OpenGG/66ec090d0fac23f0cebeba79ccf2148e to your computer and use it in GitHub Desktop.
Nginx quick test
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
mkdir html | |
mkdir config | |
# default conf | |
docker run --name tmp-nginx-container -d nginx | |
docker cp tmp-nginx-container:/etc/nginx/ config/ | |
docker rm -f tmp-nginx-container | |
docker run \ | |
--name my-nginx \ | |
-p 80:80 \ | |
-v $(pwd)/config:/etc/nginx:ro \ | |
-v $(pwd)/html:/usr/share/nginx/html:ro \ | |
-d \ | |
nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment