Files
openmotion/deploy/.env.example
VanJay 9124237a13 feat(deploy): add a local Docker Compose deployment (#577)
* feat(deploy): add a local Docker Compose deployment

Add deploy/ with a Dockerfile, a Compose file and a guide. The image is
built from the checkout and carries Node.js 26.11.1, Chromium,
FFmpeg/ffprobe and CJK fonts. Projects and exports live in a named
volume at MOTION_DATA_DIR=/data.

Add MOTION_BIND_HOST so the server can listen on an address other than
loopback. The default stays 127.0.0.1. The image sets 0.0.0.0 and
Compose publishes the port on the host's 127.0.0.1 only. The Host and
Origin checks in handler() are unchanged, so this adds no remote access.

Agents connect with `docker exec -i openmotion node
--experimental-strip-types mcp.ts`, which reuses the running service.

Known limit: the Studio's web browser tab cannot start Chromium with its
sandbox in an unprivileged container. Preview and export are unaffected.

* docs(deploy): record the x86_64 container validation

* fix(deploy): accept only loopback or wildcard bind addresses

MOTION_BIND_HOST accepted any IP address. With a specific interface
address the readiness probe and the URLs returned to Agents still used
127.0.0.1, so startup timed out and handoffs pointed at an address
nothing listened on. Accept 127.0.0.1, 0.0.0.0 and :: only.

Correct the access description in the deployment guide and the change
record: publishing the port on the host's loopback address is the
boundary. The Host and Origin checks protect a local browser from other
websites and are not authentication.

* fix(deploy): keep MCP connection commands inside the Docker workspace

* fix(deploy): preserve primary Skill onboarding for Docker connections

* fix(deploy): accept Docker discovery in Studio connection consumers

* test(studio): isolate page cleanup from tracking retries

---------

Co-authored-by: lefarcen <935902669@qq.com>
2026-11-18 17:54:27 +08:00

14 lines
428 B
Plaintext

# Image tag built by `docker compose build`.
OPENMOTION_IMAGE=openmotion:local
# Port on the host's 127.0.0.1 and inside the container. Keep both equal so the
# URLs returned by the server and MCP open in the host browser.
OPENMOTION_PORT=4173
# Container memory limit. Rendering runs Chromium and FFmpeg; raise it for long
# or high-resolution exports.
OPENMOTION_MEM_LIMIT=4g
# Set to 1 to disable analytics.
DO_NOT_TRACK=