Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created July 13, 2016 16:03
Show Gist options
  • Select an option

  • Save Integralist/55d091fad91c2b4c7e9a36b3c798f01a to your computer and use it in GitHub Desktop.

Select an option

Save Integralist/55d091fad91c2b4c7e9a36b3c798f01a to your computer and use it in GitHub Desktop.
nginx health check via docker
# 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