Created
July 13, 2016 16:03
-
-
Save Integralist/55d091fad91c2b4c7e9a36b3c798f01a to your computer and use it in GitHub Desktop.
nginx health check via 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
| # docker run --name nginx-container -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf:ro -P -d nginx | |
| user www-data; | |
| worker_processes auto; | |
| pid /nginx.pid; | |
| events { | |
| worker_connections 512; | |
| } | |
| http { | |
| server { | |
| location /health { | |
| access_log /dev/stdout; | |
| error_log /dev/stdout warn; | |
| stub_status on; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment