docker + wordpress + nginx = intermittent 404

So Im posting the answer if that helps anyone. It turns out all my issues where coming from a failed wordpress auto update to 6.5.4. after forcing the update everything came back to normal

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)