« Ovh letsencrypt » : différence entre les versions
Aucun résumé des modifications |
|||
| Ligne 230 : | Ligne 230 : | ||
----- | ----- | ||
=== 🔧 Solution B ( | === 🔧 Solution B (BEST)=== | ||
`certbot/dns-ovh:latest` | `certbot/dns-ovh:latest` | ||
==== ✅ '''1. Script <code>initial.sh</code> – Création initiale du certificat''' ==== | ==== ✅ '''1. Script <code>initial.sh</code> – Création initiale du certificat''' ==== | ||
| Ligne 329 : | Ligne 329 : | ||
===== 🐳 2. '''Contenu du <code>docker-compose.yml</code>''' ===== | ===== 🐳 2. '''Contenu du <code>docker-compose.yml</code>''' ===== | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
services: | services: | ||
certbot: | certbot: | ||
image: certbot/dns-ovh | image: certbot/dns-ovh | ||
container_name: certbot-ovh | container_name: certbot-ovh | ||
volumes: | volumes: | ||
- "/etc/letsencrypt:/etc/letsencrypt" | - "/etc/letsencrypt:/etc/letsencrypt" | ||
- "/var/lib/letsencrypt:/var/lib/letsencrypt" | - "/var/lib/letsencrypt:/var/lib/letsencrypt" | ||
- ". | - "/etc/letsencrypt/.ovhsecrets:/secrets" | ||
restart: "no" | |||
</syntaxhighlight> | |||
----- | ----- | ||