How-To: Run Dapr in self-hosted mode without Docker

    This article provides guidance on running Dapr in self-hosted mode without Docker.

    Initialize Dapr without containers

    The Dapr CLI provides an option to initialize Dapr using slim init, without the default creation of a development environment which has a dependency on Docker. To initialize Dapr with slim init, after installing the Dapr CLI use the following command:

    In this mode two different binaries are installed and placement. The binary is needed to enable actors in a Dapr self-hosted installation.

    See for an example on how to perform service invocation in this mode.

    Enabling state management or pub/sub

    See configuring Redis in self hosted mode to enable a local state store or pub/sub broker for messaging.

    The placement service must be run locally to enable actor placement. Also a transactional state store must be enabled for actors.

    From here on you can follow the sample example created for the , python-sdk or for running an application with Actors enabled.

    Update the state store configuration files to have the Redis host and password match the setup that you have. Additionally to enable it as a actor state store have the metadata piece added similar to the sample Java Redis component definition.

    Cleanup

    Follow the uninstall instructions to remove the binaries.