Configuration
Console environment variables
Set these on the console container.
| Variable | Default | What it does |
|---|---|---|
AWS_ENDPOINT_URL | http://floci:4566 | Where the console reaches Floci from inside Docker. Use http://localhost.floci.io:4566 with the setup in Getting started. |
AWS_REGION | ap-southeast-1 | The region the console works in. Must match your app's region. |
FLOCI_PUBLIC_URL | http://localhost:4566 | Floci's address as seen from your machine. Shown in Connect your app and used for links the browser opens (pre-signed URLs, hosted UI…). |
PORT | 3701 | Port 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.
| Setting | Why |
|---|---|
FLOCI_SERVICES_UI_ENABLED: "false" | Turns off Floci's built-in UI; Local Console replaces it. |
FLOCI_STORAGE_MODE: hybrid | Keeps data across restarts (in the floci-data volume). |
FLOCI_HOSTNAME: localhost.floci.io | Host 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_ENABLED | Off by default. Turn on to deploy CDK apps with Node custom resources, see Known limitations. |
/var/run/docker.sock volume | Floci starts real containers for Lambda, ElastiCache, Amazon MQ, RDS, DocumentDB, EC2 and ECS. |
Ports 6379-6399, 7001-7099 | Redis clusters and RDS databases for apps and clients on your machine. |
host.docker.internal:host-gateway | Lets 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