From 15286e5b56e42694a79aa814e12739bafdf1d190 Mon Sep 17 00:00:00 2001 From: Steve Krisjanovs Date: Sun, 16 Aug 2026 13:00:05 -0400 Subject: [PATCH] chore(docker): decouple compose from the metamcp network The compose file required an external network created by another project (metamcp_metamcp-network). That project no longer exists, so `up -d` now fails for everyone, and it was never reproducible outside one machine to begin with. Drops the external network and documents joining one as an optional block. The server still binds 127.0.0.1:3900; a client points at /mcp. README wording follows. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_0149Mg7kTnE3eKwmCag5KEcY --- README.md | 2 +- docker/compose.yaml | 31 +++++++++++++++++++------------ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6b791cb..616b2c1 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ MCP client config (stdio): } ``` -### Docker / GHCR (streamable HTTP — for remote / metamcp wiring) +### Docker / GHCR (streamable HTTP — for remote wiring) ```bash docker run -p 3900:3900 ghcr.io/cordfuse/barcoding-mcp:latest diff --git a/docker/compose.yaml b/docker/compose.yaml index 6ccc971..9117188 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -1,12 +1,15 @@ -# barcoding-mcp — the streamable-HTTP server that backs the metamcp endpoint. +# barcoding-mcp — the streamable-HTTP server. # -# Deploy / update the endpoint (pull the published image, recreate on the -# metamcp network — this is the whole "update after a release" flow): +# Run it: # docker compose -f docker/compose.yaml pull # docker compose -f docker/compose.yaml up -d # # Pin a specific version: BARCODING_TAG=0.2.0 docker compose … up -d # Local dev (build from src): docker compose -f docker/compose.yaml up -d --build +# +# The server listens on 127.0.0.1:3900 — point an MCP client at +# http://localhost:3900/mcp. To let another container reach it by name, attach +# both to a shared network (see the commented block at the bottom). name: barcoding-mcp services: @@ -19,11 +22,9 @@ services: environment: PORT: "3900" ports: - # localhost-only; metamcp reaches this by container name over the shared network. + # localhost-only. - "127.0.0.1:3900:3900" restart: unless-stopped - networks: - - metamcp healthcheck: # node is present in the runtime image; no curl/wget needed. test: @@ -36,9 +37,15 @@ services: retries: 3 start_period: 10s -networks: - # Created by the metamcp compose project; we attach so the aggregator can - # reach us by container name (http://barcoding-mcp:3900/mcp). - metamcp: - external: true - name: metamcp_metamcp-network +# Joining an existing network (e.g. an aggregator that reaches this by container +# name at http://barcoding-mcp:3900/mcp) — add to the service above: +# +# networks: +# - shared +# +# and declare it here: +# +# networks: +# shared: +# external: true +# name: _