mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 03:09:23 +08:00
* 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>
32 lines
1001 B
YAML
32 lines
1001 B
YAML
name: openmotion
|
|
|
|
services:
|
|
openmotion:
|
|
container_name: openmotion
|
|
image: ${OPENMOTION_IMAGE:-openmotion:local}
|
|
build:
|
|
context: ..
|
|
dockerfile: deploy/Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
# The same port is used inside and outside the container, so the URLs the
|
|
# server and MCP return open unchanged in the host browser.
|
|
PORT: ${OPENMOTION_PORT:-4173}
|
|
# Used by Studio's host-side MCP commands to enter this exact container.
|
|
MOTION_CONTAINER_NAME: openmotion
|
|
DO_NOT_TRACK: ${DO_NOT_TRACK:-}
|
|
ports:
|
|
# Loopback only. This is what keeps other machines out: the Studio has no
|
|
# sign-in, so do not publish the port on another interface.
|
|
- "127.0.0.1:${OPENMOTION_PORT:-4173}:${OPENMOTION_PORT:-4173}"
|
|
volumes:
|
|
- openmotion_data:/data
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
mem_limit: ${OPENMOTION_MEM_LIMIT:-4g}
|
|
pids_limit: 1024
|
|
shm_size: 1g
|
|
|
|
volumes:
|
|
openmotion_data:
|