Shutting Down the Application

You started your application by first launching the Docker container for the infrastructure services, then those for the Optimization Server, then you launched your application microservices. Shutting down will be performed in reverse order.

If you started the microservices of your application through shell script, simply interrupt each script with ^C. If you launched them as Docker containers, run the following command in deployment/docker/app.

docker compose down

Then, stop the Optimization Server containers by running the following command in deployment/docker/dbos.

docker compose down

Finally, stop the infrastructure containers by running the following command in deployment/docker/infra.

docker compose down -v

The -v option instructs to delete the volumes where the PostgreSQL and MongoDB data have been stored. It is not necessary if you want to continue working with this data the next time you launch your application.