# Internal health endpoint for the official dokku/dokku Docker image. # Bound to loopback so it is reachable only from inside the container # and never conflicts with user app vhosts on 80/443. server { listen 127.0.0.1:18080; server_name _; access_log off; default_type text/plain; location = /_dokku/health { if (-f /var/run/dokku/ready) { return 200 "ok\n"; } return 503 "not ready\n"; } }