How to compile custom to find syntax errors on docker compose


I am running rasa/rasa x on docket compose. After making changes in, I use to down and up docker compose. Before getting down and up docker compose, is there a way to check and found syntax error on Any command for that?