Skip to content

Configuration ​

Console environment variables ​

Set these on the console container.

VariableDefaultWhat it does
AWS_ENDPOINT_URLhttp://floci:4566Where the console reaches Floci from inside Docker. Use http://localhost.floci.io:4566 with the setup in Getting started.
AWS_REGIONap-southeast-1The region the console works in. Must match your app's region.
FLOCI_PUBLIC_URLhttp://localhost:4566Floci's address as seen from your machine. Shown in Connect your app and used for links the browser opens (pre-signed URLs, hosted UI…).
PORT3701Port the console listens on inside the container.

The console has no other settings: no accounts, no database. Its health check is GET /api/health.

Changing the port? Publish it on 127.0.0.1 and keep opening the console through localhost:

yaml
console:
  ports: ["127.0.0.1:8080:3701"]

Floci settings ​

The Getting started compose file sets these on the floci container. They are Floci options; this is why each one is there.

SettingWhy
FLOCI_SERVICES_UI_ENABLED: "false"Turns off Floci's built-in UI; Local Console replaces it.
FLOCI_STORAGE_MODE: hybridKeeps data across restarts (in the floci-data volume).
FLOCI_HOSTNAME: localhost.floci.ioHost in the URLs Floci returns (queue URLs, Redis endpoints…). It resolves to 127.0.0.1 on your machine, and the localhost.floci.io network alias makes it reach Floci inside Docker and Lambda.
FLOCI_SERVICES_EC2_VPC_NETWORKS_ENABLED: "false"With VPC networks on, a Floci restart after launching an EC2 instance can leave Lambda functions unable to reach Floci (ECONNREFUSED).
FLOCI_TLS_ENABLEDOff by default. Turn on to deploy CDK apps with Node custom resources, see Known limitations.
/var/run/docker.sock volumeFloci starts real containers for Lambda, ElastiCache, Amazon MQ, RDS, DocumentDB, EC2 and ECS.
Ports 6379-6399, 7001-7099Redis clusters and RDS databases for apps and clients on your machine.
host.docker.internal:host-gatewayLets Floci call apps on your machine (SNS HTTP subscriptions) on Linux.

CloudFront origins on your machine ​

A CloudFront custom origin on a private host (for example your API at host.docker.internal) answers 502 until Floci allows it:

yaml
floci:
  environment:
    FLOCI_SERVICES_CLOUDFRONT_ALLOWED_PRIVATE_ORIGIN_HOSTS: host.docker.internal

Released under the MIT License. Runs next to Floci. Not affiliated with Amazon Web Services.