Files
floci/docker-compose.yml
T
Hector Ventura fb546d54c4 fix(docker): enable TLS and sync docker test runner with compatibility workflow (#1714)
* fix(docker): enable TLS and sync docker test runner with compatibility workflow

The local docker compose stack ran without FLOCI_TLS_ENABLED and the EC2 mock,
and run-docker-tests.sh lacked the hot-reload bind mount, so the node TLS/WSS
suites and the Java Lambda hot-reload test failed locally while passing in CI.
Mirror the compatibility workflow's configuration so local runs exercise the
same setup.

* fix: remove FLOCI_SERVICES_EC2_MOCK from docker-compose

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-07-03 01:10:06 -05:00

37 lines
1.2 KiB
YAML

services:
floci:
build:
context: .
dockerfile: docker/Dockerfile
tty: true
ports:
- "4566:4566"
- "6379-6399:6379-6399"
- "7001-7099:7001-7099"
- "9200-9299:9200-9299"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
environment:
FLOCI_SERVICES_DOCKER_NETWORK: floci_default
FLOCI_SERVICES_RDS_PROXY_BASE_PORT: "7001"
# FLOCI_STORAGE_HOST_PERSISTENT_PATH is no longer needed.
# Floci now uses named Docker volumes by default.
# If you were using this env var for persistence, migrate: docker volume ls -f label=floci=true
FLOCI_HOSTNAME: floci
FLOCI_BASE_URL: http://floci:4566
FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ENABLED: "true"
# Match the compatibility workflow (.github/workflows/compatibility.yml) so the
# local Docker test run exercises the same Floci configuration as CI.
# TLS proxy serves HTTP and HTTPS on the same port 4566 (first-byte sniffing),
# so no extra port mapping is needed — this is what makes the TLS/HTTPS suites pass.
FLOCI_TLS_ENABLED: "true"
networks:
floci_default:
aliases:
- localhost.floci.io
networks:
floci_default:
name: floci_default