# CommunityToolkit.Aspire.Hosting.Floci

- Module: `CommunityToolkit.Aspire.Hosting.Floci`
- Version: `13.6.1`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)
- Functions: `27`
- Types: `7`

## Handles

- [FlociAwsContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociawscontainerresource.md) -- `handle` - 10 members -- Resource for the Floci AWS emulator container.
- [FlociAzureContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md) -- `handle` - 12 members -- Resource for the Floci Azure emulator container.
- [FlociAzureCosmosResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociazurecosmosresource.md) -- `handle` - 4 members -- Represents the Cosmos DB API exposed by a Floci Azure emulator resource.
- [FlociAzureServiceBusResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociazureservicebusresource.md) -- `handle` - 4 members -- Represents the Service Bus AMQP data plane exposed by a Floci Azure emulator resource.
- [FlociAzureStorageResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociazurestorageresource.md) -- `handle` - 4 members -- Represents the Blob, Queue and Table Storage APIs exposed by a Floci Azure emulator resource.
- [FlociGcpContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource.md) -- `handle` - 9 members -- Resource for the Floci GCP emulator container.
- [FlociUIContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociuicontainerresource.md) -- `handle` - 5 members -- Resource for the Floci UI web console container. A single UI instance can attach to any combination of Floci cloud resources (AWS, Azure, GCP) -- one created it via `WithFlociUI` (its `Parent`), and any others are attached via `WithReference`.

## Functions

- [AddFlociAws](/reference/api/go/communitytoolkit.aspire.hosting.floci/addflociaws.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Floci AWS emulator container resource
- [AddFlociAzure](/reference/api/go/communitytoolkit.aspire.hosting.floci/addflociazure.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Floci Azure emulator container resource
- [AddFlociGcp](/reference/api/go/communitytoolkit.aspire.hosting.floci/addflocigcp.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Floci GCP emulator container resource
- [WithConfigFile](/reference/api/go/communitytoolkit.aspire.hosting.floci/withconfigfile.md) -- `method` - on `FlociAwsContainerResource` -- Mounts a custom Quarkus `application.yml` configuration file into the Floci container. The file is mounted read-only at `/deployments/config/application.yml`, which Quarkus reads on startup and merges with built-in defaults.
- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdatabindmount-flociawscontainerresource-string.md) -- `method` - on `FlociAwsContainerResource` -- Configures a bind mount for persistent Floci state.
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdatavolume-flociawscontainerresource-string.md) -- `method` - on `FlociAwsContainerResource` -- Configures a named data volume for persistent Floci state.
- [WithDockerSocket](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdockersocket-flociawscontainerresource-noargs.md) -- `method` - on `FlociAwsContainerResource` -- Mounts the Docker socket into the Floci container so that Lambda and other container-backed AWS services can launch sibling containers. Also sets `FLOCI_DOCKER_DOCKER_HOST` to `unix:///var/run/docker.sock` (the container-side path where the socket is always mounted) so Floci can connect to it.
- [WithFlociUI](/reference/api/go/communitytoolkit.aspire.hosting.floci/withflociui-flociawscontainerresource-noargs.md) -- `method` - on `FlociAwsContainerResource` -- Adds a Floci UI web console container for the Floci resource
- [WithCosmos](/reference/api/go/communitytoolkit.aspire.hosting.floci/withcosmos.md) -- `method` - on `FlociAzureContainerResource` -- Adds a Cosmos DB child resource to the Floci Azure emulator
- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdatabindmount-flociazurecontainerresource-string.md) -- `method` - on `FlociAzureContainerResource` -- Configures a bind mount for persistent Floci Azure state.
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdatavolume-flociazurecontainerresource-string.md) -- `method` - on `FlociAzureContainerResource` -- Configures a named data volume for persistent Floci Azure state.
- [WithDockerSocket](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdockersocket-flociazurecontainerresource-noargs.md) -- `method` - on `FlociAzureContainerResource` -- Mounts the Docker socket into the Floci Azure container so that Azure Functions and other container-backed services can launch sibling containers. Also sets `FLOCI_AZ_DOCKER_DOCKER_HOST` to `unix:///var/run/docker.sock` (the container-side path where the socket is always mounted) so Floci can connect to it.
- [WithFlociUI](/reference/api/go/communitytoolkit.aspire.hosting.floci/withflociui-flociazurecontainerresource-noargs.md) -- `method` - on `FlociAzureContainerResource` -- Adds a Floci UI web console container for the Floci Azure resource
- [WithServiceBus](/reference/api/go/communitytoolkit.aspire.hosting.floci/withservicebus.md) -- `method` - on `FlociAzureContainerResource` -- Adds a Service Bus child resource to the Floci Azure emulator
- [WithStorage](/reference/api/go/communitytoolkit.aspire.hosting.floci/withstorage.md) -- `method` - on `FlociAzureContainerResource` -- Adds a Storage child resource to the Floci Azure emulator
- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdatabindmount-flocigcpcontainerresource-string.md) -- `method` - on `FlociGcpContainerResource` -- Configures a bind mount for persistent Floci GCP state.
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdatavolume-flocigcpcontainerresource-string.md) -- `method` - on `FlociGcpContainerResource` -- Configures a named data volume for persistent Floci GCP state.
- [WithDockerSocket](/reference/api/go/communitytoolkit.aspire.hosting.floci/withdockersocket-flocigcpcontainerresource-noargs.md) -- `method` - on `FlociGcpContainerResource` -- Mounts the Docker socket into the Floci GCP container so that Cloud Run, Cloud SQL, and other container-backed services can launch sibling containers. Also sets `FLOCI_GCP_DOCKER_DOCKER_HOST` to `unix:///var/run/docker.sock` (the container-side path where the socket is always mounted) so Floci can connect to it.
- [WithFlociUI](/reference/api/go/communitytoolkit.aspire.hosting.floci/withflociui-flocigcpcontainerresource-noargs.md) -- `method` - on `FlociGcpContainerResource` -- Adds a Floci UI web console container for the Floci GCP resource
- [WithAwsReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/withawsreference.md) -- `method` - on `FlociUIContainerResource` -- Attaches an additional Floci AWS resource to a Floci UI console
- [WithAzureReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/withazurereference.md) -- `method` - on `FlociUIContainerResource` -- Attaches an additional Floci Azure resource to a Floci UI console
- [WithGcpReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/withgcpreference.md) -- `method` - on `FlociUIContainerResource` -- Attaches an additional Floci GCP resource to a Floci UI console
- [WithHostPort](/reference/api/go/communitytoolkit.aspire.hosting.floci/withhostport.md) -- `method` - on `FlociUIContainerResource` -- Configures the host port that the Floci UI resource is exposed on instead of using a randomly assigned port.
- [WithFlociAwsReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/withflociawsreference.md) -- `method` - on `ResourceWithEnvironment` -- Adds a reference to a Floci AWS emulator resource
- [WithFlociAzureReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/withflociazurereference.md) -- `method` - on `ResourceWithEnvironment` -- Adds a reference to a Floci Azure emulator resource
- [WithFlociAzureServiceBusReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/withflociazureservicebusreference.md) -- `method` - on `ResourceWithEnvironment` -- Adds a Floci Azure Service Bus reference
- [WithFlociGcpReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/withflocigcpreference.md) -- `method` - on `ResourceWithEnvironment` -- Adds a reference to a Floci GCP emulator resource
