Container che rimane su, si riavvia quando crasha, e avvisa quando non va — queste tre funzionalita rendono l infrastruttura robusta.
Restart policy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Per MariaDB
...
Restart policy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Per MariaDB
...
Contenuto riservato ai membri
Registrati gratis per accedere al corso completo, ai quiz e ai PDF scaricabili.
Crea account gratis → Ho già un account
Nessun commento ancora. Sii il primo!