I've added a pre script which executes docker compose up to start required containers. Then as post script is docker compose down, which should stop all the running containers.
Whenever I start my start:dev script, the prestart:dev gets called and containers are started but on exiting or stopping the server, poststart:dev doesn't get called.
Any idea as to how this can be fixed?