Create Cert by Let's Encrypt
Create Cert by Lets’s Encrypt
- Create cert by docker compose
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15services:
certbot:
image: certbot/certbot
container_name: certbot
ports:
- "80:80"
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/lib:/var/lib/letsencrypt
command: >
certonly --standalone
--non-interactive
--agree-tos
--email you@example.com
-d example.com
1 | docker compose up certbot |

- Renew cert
1
docker compose up certbot
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
