title: How to restart host nginx from inside docker after certbot renew
body: <p>If you have a docker container running certbot, but a nginx instance usign those certificates running on the host, how do you restart the host nginx from inside the docker container?</p>
  
  <p>This is the running container</p>
  
  <pre><code>certbot:
      image: certbot/dns-ovh
      container_name: certbot
      volumes:
        - /etc/letsencrypt/:/etc/letsencrypt
        - /var/lib/letsencrypt:/var/lib/letsencrypt
        - /root/.secrets/certbot-ovh.ini:/root/.secrets/ovh-creds.ini
      entrypoint: /bin/sh -c 'trap exit  TERM; while :; do certbot renew sleep 12h &amp; wait $${!}; done;'
  </code></pre>