docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec nginx-mailcow nginx -s reload

Category: Mail Servers & Postfix

docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec nginx-mailcow nginx -s reload

Reload nginx config without dropping connections

nginx -s reload tells the running master process to re-read its configuration and apply changes gracefully. Existing connections finish, new connections use the new config. Do this after nginx -t passes instead of restarting the container.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.