fix: bind Notes host ports to loopback
This commit is contained in:
parent
95fc262006
commit
3683ba9dd2
@ -1,16 +1,15 @@
|
|||||||
# Local override for `docker compose up` on this host.
|
# Local override for `docker compose up` on this host.
|
||||||
#
|
#
|
||||||
# Why this exists:
|
# Why this exists:
|
||||||
# docker-compose.yml maps the web container to host port 3000, but
|
# Keep direct host access loopback-only. Caddy reaches the web container
|
||||||
# port 3000 on this host is already occupied (Grafana). This file
|
# over the Docker network, so the host bind is for local smoke checks only.
|
||||||
# remaps web to host port 3050 and backend stays on 4016. The backend
|
# The backend is configured to point at the sibling platform/extraction/mcp
|
||||||
# is configured to point at the sibling platform/extraction/mcp
|
|
||||||
# services already running on the host network.
|
# services already running on the host network.
|
||||||
#
|
#
|
||||||
# Bring up:
|
# Bring up:
|
||||||
# docker compose up -d
|
# docker compose up -d
|
||||||
# URLs:
|
# URLs:
|
||||||
# Web: http://127.0.0.1:3050
|
# Web: http://127.0.0.1:3000
|
||||||
# Backend: http://127.0.0.1:4016
|
# Backend: http://127.0.0.1:4016
|
||||||
# Health: http://127.0.0.1:4016/health
|
# Health: http://127.0.0.1:4016/health
|
||||||
# Bring down:
|
# Bring down:
|
||||||
@ -21,7 +20,7 @@ services:
|
|||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
environment:
|
environment:
|
||||||
CORS_ORIGIN: "http://127.0.0.1:3050"
|
CORS_ORIGIN: "http://127.0.0.1:3000"
|
||||||
PLATFORM_SERVICE_URL: "http://host.docker.internal:4003"
|
PLATFORM_SERVICE_URL: "http://host.docker.internal:4003"
|
||||||
EXTRACTION_SERVICE_URL: "http://host.docker.internal:4005"
|
EXTRACTION_SERVICE_URL: "http://host.docker.internal:4005"
|
||||||
MCP_SERVER_URL: "http://host.docker.internal:4007"
|
MCP_SERVER_URL: "http://host.docker.internal:4007"
|
||||||
@ -33,7 +32,7 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
ports: !override
|
ports: !override
|
||||||
- "3050:3045"
|
- "127.0.0.1:3000:3045"
|
||||||
# NEXT_PUBLIC_* values are baked into the Next.js bundle at build
|
# NEXT_PUBLIC_* values are baked into the Next.js bundle at build
|
||||||
# time. They MUST be set as build args so `pnpm run build` inside
|
# time. They MUST be set as build args so `pnpm run build` inside
|
||||||
# the Dockerfile picks them up. Runtime `environment:` alone has no
|
# the Dockerfile picks them up. Runtime `environment:` alone has no
|
||||||
|
|||||||
@ -5,7 +5,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: backend/Dockerfile
|
dockerfile: backend/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "4016:4016"
|
- "127.0.0.1:4016:4016"
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
PORT: 4016
|
PORT: 4016
|
||||||
@ -62,7 +62,7 @@ services:
|
|||||||
NEXT_PUBLIC_PRODUCT_ID: ${NEXT_PUBLIC_PRODUCT_ID:-notelett}
|
NEXT_PUBLIC_PRODUCT_ID: ${NEXT_PUBLIC_PRODUCT_ID:-notelett}
|
||||||
NEXT_PUBLIC_TELEMETRY_TRANSPORT: ${NEXT_PUBLIC_TELEMETRY_TRANSPORT:-fetch}
|
NEXT_PUBLIC_TELEMETRY_TRANSPORT: ${NEXT_PUBLIC_TELEMETRY_TRANSPORT:-fetch}
|
||||||
ports:
|
ports:
|
||||||
- "3000:3045"
|
- "127.0.0.1:3000:3045"
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
NEXT_PUBLIC_PRODUCT_NAME: NoteLett
|
NEXT_PUBLIC_PRODUCT_NAME: NoteLett
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user