Skip to content

Docker deployment: real-time viewer on :3113 is unreachable (engine-only image never launches the npm viewer process) #1330

Open

Description

@herman925

Bug Description

The documented real-time viewer (port 3113) is unreachable when agentmemory runs via the Docker deployment. The viewer is a core feature — the README says "the viewer at :3113 shows what your agent remembered" and lists 3113 as the standard fourth port — but in the Docker-engine-only path it never comes up.

Steps to Reproduce

  1. Install/run agentmemory via Docker (the iiidev/iii engine image, e.g. iiidev/iii:0.11.2), with the memory state stored at the platform default data dir.
  2. Start the container and expose its mapped ports.
  3. Open http://localhost:3113/.

Actual: connection refused / nothing listening. 3113 is dead.

Expected Behavior

The real-time viewer should be served on http://localhost:3113, just as it is in the npx -y @agentmemory/agentmemory@latest path.

Root Cause

The viewer is served by the @agentmemory/agentmemory npm process, not by the iii engine. The iiidev/iii Docker image runs only /app/iii (the engine); it never launches the npm agentmemory process that serves :3113.

Evidence from a live install:

  • The engine image iiidev/iii:0.11.2 exposes only 3111/tcp (REST/MCP), 3112/tcp (streams), 49134/tcp (worker WS), 9464/tcp. No 3113.
  • The engine config (iii-config.docker.yaml) pre-authorises the viewer origin — allowed_origins includes http://localhost:3113 — so the engine clearly expects a viewer to exist, but the Docker deployment provides no process to serve it.
  • The canonical fresh-install path npx -y @agentmemory/agentmemory@latest starts both the server and its pinned engine, and that is the path that brings up :3113.

In the Docker path, the two documented components are split: engine in the container, npm viewer not launched anywhere.

Proposed Solution

Two complementary options:

A. Ship/serve the viewer in the image (preferred). Add the @agentmemory/agentmemory npm process as a second entrypoint in the Docker image so the container publishes 3113/tcp alongside 3111/3112/49134/9464, and map it in the compose ports. This makes the Docker deployment feature-complete with a single docker compose up.

B. Document + support a read-only host sidecar. Since the engine already holds the store, running the npm CLI against the same live state_store.db risks store corruption / lock contention (two engines on one store, possible schema-version mismatch between the v0.11 engine and the npm viewer v0.9). Provide official guidance to run the npm viewer against a copy/snapshot of the data dir (or an isolated --data-dir) for read-only inspection, rather than pointing it at the live store. This keeps the viewer safe to use without risking the engine's data.

Environment

  • OS: Windows 11
  • Engine image: iiidev/iii:0.11.2
  • Deployment: Docker (engine-only), data dir bind-mounted at C:\Users\hkkchan\AppData\Roaming/agentmemory → /data
  • Version: agentmemory (Docker engine path); confirmed viewer absent from image exposed ports

Suggested labels

bug, docker, enhancement

Activity

  1. added
    bug
    P1
    severity: high
    deploy
    viewer
    needs-verification
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1bugdeployneeds-verificationseverity: highviewer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions