Linux/Docker/Letsencrypt: Difference between revisions

From Wiki
< Linux‎ | Docker
No edit summary
No edit summary
Line 1: Line 1:
== docker-compose.yml ==
<pre>
version: '3'
services:
  certbot:
    image: certbot/certbot:latest
    container_name: certbot
    volumes:
      - /srv/docker-data/certbot/webroot:/var/www
      - /srv/docker-data/certbot/etc:/etc/letsencrypt
</pre>
== domains.sh ==
<pre>
#!/usr/bin/env bash
certdomains="domain1.com,\
domain2.com"
</pre>
== docker-compose.yml ==
<pre>
</pre>
== Old Setup ==
== Old Setup ==
<pre>
<pre>
certbot certonly --agree-tos --email email@aol.com --non-interactive --webroot --webroot-path --domains DOMAINS (--dry-run)
certbot certonly --agree-tos --email email@aol.com --non-interactive --webroot --webroot-path --domains DOMAINS (--dry-run)
</pre>
</pre>




[[Category:Linux/Docker]]
[[Category:Linux/Docker]]
[[Category:Linux]]
[[Category:Linux]]

Revision as of 17:18, 26 March 2020

docker-compose.yml

version: '3'

services:
  certbot:
    image: certbot/certbot:latest
    container_name: certbot
    volumes:
      - /srv/docker-data/certbot/webroot:/var/www
      - /srv/docker-data/certbot/etc:/etc/letsencrypt


domains.sh

#!/usr/bin/env bash

certdomains="domain1.com,\
domain2.com"


docker-compose.yml




Old Setup

certbot certonly --agree-tos --email email@aol.com --non-interactive --webroot --webroot-path --domains DOMAINS (--dry-run)