use lego to renew certificates on vps

refactor caddy config
This commit is contained in:
v.karaychentsev
2026-02-23 20:35:57 +03:00
parent c308c5a8d2
commit 7106df52f1
7 changed files with 94 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
services:
lego:
image: goacme/lego:latest
container_name: lego
restart: "no"
env_file: .env
volumes:
- ./certs:/.lego
command:
- --email=admin@kladovka52.com
- --accept-tos
- --dns=porkbun
- --domains=kladovka52.com
- --domains=*.kladovka52.com
- run
# use renew to update existing certificate(s)
# - renew u
# - --days=60