I found these 2 snippets in a docker-compose.yml that have the statement $${!}.
This will check if your certificate is up for renewal every 12 hours as recommended by Let’s Encrypt.
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
In the nginx section, you need to make sure that nginx reloads the newly obtained certificates:
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
Can anybody explain what this is?
What it means?
How it fits in this story of certificate renewal?