generated from bisco/codex-bootstrap
1.4 KiB
1.4 KiB
Runbook
Site shows fallback content
- Check
docker compose psand the backend health status. - Request
http://localhost:8000/api/site/home/directly. - Inspect
docker compose logs backend postgres. - Verify
PUBLIC_CMS_API_URLresolves from the frontend container. - Restart the frontend after recovery so its static page is rebuilt from CMS data.
Wagtail does not start
- Confirm PostgreSQL is healthy.
- Check
DATABASE_URLand allowed hosts without printing secret values in shared logs. - Run
docker compose exec backend python manage.py migrate. - Review backend logs for a specific migration or configuration error.
Images are missing
- Verify the
media_datavolume is mounted at/app/media. - Check
WAGTAILADMIN_BASE_URLuses a URL reachable by the browser. - Confirm the image still exists in Wagtail and has not been removed from the volume.
A service is unhealthy
- Run
docker compose psand inspectdocker compose logs --tail=200 SERVICE. - For PostgreSQL, check volume capacity and database/user configuration.
- For the backend, check
/health/, migrations, and database connectivity. - For the frontend, request port
4321, then check the API separately because fallback content can mask a CMS outage.
Rollback
Revert the application commit and rebuild containers. Preserve database/media volumes. Before reversing migrations or deleting volumes, make and validate coordinated backups.