mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
deploy: 602f6fce06
This commit is contained in:
parent
3569f86df1
commit
a0f6f0c9d4
|
@ -1839,8 +1839,24 @@ docker run --rm -it <span class="se">\</span>
|
||||||
<li>
|
<li>
|
||||||
<p>Add a volume for <code>docker-mailserver</code> that maps the <em>local <code>certbot/certs/</code> folder</em> to the container path <code>/etc/letsencrypt/</code>.</p>
|
<p>Add a volume for <code>docker-mailserver</code> that maps the <em>local <code>certbot/certs/</code> folder</em> to the container path <code>/etc/letsencrypt/</code>.</p>
|
||||||
</li>
|
</li>
|
||||||
<li>The certificate setup is complete, but remember <em>it will expire</em>. Consider automating renewals.</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="admonition example">
|
||||||
|
<p class="admonition-title">Example</p>
|
||||||
|
<p>Add these additions to the <code>mailserver</code> service in your <a href="https://github.com/docker-mailserver/docker-mailserver/blob/master/docker-compose.yml"><code>docker-compose.yml</code></a>:</p>
|
||||||
|
<div class="highlight"><pre><span></span><code><span class="nt">services</span><span class="p">:</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="nt">mailserver</span><span class="p">:</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="c1"># For the FQDN 'mail.example.com':</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="nt">hostname</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">mail</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="nt">domainname</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">example.com</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="nt">environment</span><span class="p">:</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">SSL_TYPE=letsencrypt</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="nt">volumes</span><span class="p">:</span><span class="w"></span>
|
||||||
|
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">./docker-data/certbot/certs/:/etc/letsencrypt</span><span class="w"></span>
|
||||||
|
</code></pre></div>
|
||||||
|
</div>
|
||||||
|
<ol>
|
||||||
|
<li>The certificate setup is complete, but remember <em>it will expire</em>. Consider automating renewals.</li>
|
||||||
|
</ol>
|
||||||
<div class="admonition tip">
|
<div class="admonition tip">
|
||||||
<p class="admonition-title">Renewing Certificates</p>
|
<p class="admonition-title">Renewing Certificates</p>
|
||||||
<p>When running the above <code>certonly --standalone</code> snippet again, the existing certificate is renewed if it would expire within 30 days.</p>
|
<p>When running the above <code>certonly --standalone</code> snippet again, the existing certificate is renewed if it would expire within 30 days.</p>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue