Fix lego command execution in docker-compose.yml for proper certificate renewal
Deploy mini-pc / deploy (push) Failing after 12s

This commit is contained in:
Dmitry
2026-05-27 19:34:37 +03:00
parent 6123168567
commit 1e2f3dca1e
+4 -5
View File
@@ -25,20 +25,19 @@ services:
- -c - -c
- | - |
while true; do while true; do
/lego \ /lego renew \
--email "$$LEGO_EMAIL" \ --email "$$LEGO_EMAIL" \
--dns timewebcloud \ --dns timewebcloud \
--domains ada-dev.ru \ --domains ada-dev.ru \
--domains '*.ada-dev.ru' \ --domains '*.ada-dev.ru' \
--path /lego-data \ --path /lego-data \
renew --days 30 || \ --days 30 || \
/lego \ /lego run \
--email "$$LEGO_EMAIL" \ --email "$$LEGO_EMAIL" \
--dns timewebcloud \ --dns timewebcloud \
--domains ada-dev.ru \ --domains ada-dev.ru \
--domains '*.ada-dev.ru' \ --domains '*.ada-dev.ru' \
--path /lego-data \ --path /lego-data
run
sleep 24h sleep 24h
done done
networks: {} networks: {}