Refactor lego command execution logic in docker-compose.yml for improved certificate renewal handling
Deploy mini-pc / deploy (push) Failing after 12s
Deploy mini-pc / deploy (push) Failing after 12s
This commit is contained in:
@@ -25,19 +25,23 @@ services:
|
||||
- -c
|
||||
- |
|
||||
while true; do
|
||||
/lego renew \
|
||||
--email "$$LEGO_EMAIL" \
|
||||
--dns timewebcloud \
|
||||
--domains ada-dev.ru \
|
||||
--domains '*.ada-dev.ru' \
|
||||
--path /lego-data \
|
||||
--days 30 || \
|
||||
/lego run \
|
||||
--email "$$LEGO_EMAIL" \
|
||||
--dns timewebcloud \
|
||||
--domains ada-dev.ru \
|
||||
--domains '*.ada-dev.ru' \
|
||||
--path /lego-data
|
||||
if [ -f /lego-data/certificates/_.ada-dev.ru.crt ]; then
|
||||
/lego renew \
|
||||
--email "$$LEGO_EMAIL" \
|
||||
--dns timewebcloud \
|
||||
--domains ada-dev.ru \
|
||||
--domains '*.ada-dev.ru' \
|
||||
--path /lego-data \
|
||||
--days 30
|
||||
else
|
||||
/lego run \
|
||||
--email "$$LEGO_EMAIL" \
|
||||
--accept-tos \
|
||||
--dns timewebcloud \
|
||||
--domains ada-dev.ru \
|
||||
--domains '*.ada-dev.ru' \
|
||||
--path /lego-data
|
||||
fi
|
||||
sleep 24h
|
||||
done
|
||||
networks: {}
|
||||
|
||||
Reference in New Issue
Block a user