mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* feat(lambda): add bind-mount hot-reload mode via S3Bucket=hot-reload Functions created with S3Bucket=hot-reload and S3Key=/absolute/path have their host directory bind-mounted into /var/task rather than packaged as a ZIP. Each invocation runs an ephemeral container so file changes on disk are picked up immediately without calling UpdateFunctionCode or re-uploading code. Feature is disabled by default; opt in with: FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ENABLED=true An optional path allowlist (FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ALLOWED_PATHS) restricts which host directories may be bind-mounted. * fix: missing hot reload enable env
31 lines
804 B
YAML
31 lines
804 B
YAML
services:
|
|
floci:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.native
|
|
ports:
|
|
- "4566:4566"
|
|
- "6379-6399:6379-6399"
|
|
- "7001-7099:7001-7099"
|
|
- "9200-9299:9200-9299"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./scripts:/etc/floci/init/start.d
|
|
- ./scripts:/etc/floci/init/stop.d
|
|
- ./data:/app/data
|
|
environment:
|
|
FLOCI_SERVICES_DOCKER_NETWORK: floci_default
|
|
FLOCI_SERVICES_RDS_PROXY_BASE_PORT: "7001"
|
|
FLOCI_STORAGE_HOST_PERSISTENT_PATH: ${PWD}/data
|
|
FLOCI_HOSTNAME: floci
|
|
FLOCI_BASE_URL: http://floci:4566
|
|
FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ENABLED: "true"
|
|
networks:
|
|
floci_default:
|
|
aliases:
|
|
- localhost.floci.io
|
|
|
|
networks:
|
|
floci_default:
|
|
name: floci_default
|