def stop()

in composer_local_dev/environment.py [0:0]


    def stop(self, remove_container=False):
        """
        Stops the local composer environment.

        By default container is not removed.
        """
        with console.get_console().status(
                f"[bold green]Stopping composer local environment..."
        ):
            db_container = self.get_container(self.db_container_name, ignore_not_found=True)
            if db_container:
                db_container.stop()
                if remove_container:
                    db_container.remove()

            container = self.get_container(self.container_name, ignore_not_found=True)
            if container:
                container.stop()
                if remove_container:
                    container.remove()

            if remove_container:
                network = self.get_docker_network()
                network.remove()