archy/docker-compose.demo.yml
Dorian f8e5e947ec fix: route Claude API through backend instead of nginx envsubst
- Add Claude API proxy in mock-backend.js (reads ANTHROPIC_API_KEY from env)
- Supports SSE streaming via pipe
- Move ANTHROPIC_API_KEY to backend service in docker-compose.demo.yml
- Remove envsubst from entrypoint (no longer needed)
- nginx-demo.conf proxies /aiui/api/claude/ to backend

This fixes the 401 error when Portainer doesn't pass env vars to
nginx correctly — the Node.js backend reads process.env directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:07:38 +00:00

31 lines
881 B
YAML

# Archipelago Demo Stack - Mock backend + Vue UI + AIUI Chat
# Deploy via Portainer: Web editor -> paste this, or deploy from repo
# Access at http://localhost:4848 (or your host:4848)
#
# Required: Set ANTHROPIC_API_KEY in environment or .env file for chat to work
# Optional: Chat will show fallback message if no key is set
services:
neode-backend:
build:
context: .
dockerfile: neode-ui/Dockerfile.backend
container_name: archy-demo-backend
environment:
VITE_DEV_MODE: "existing" # Skip setup/onboarding, go straight to login
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
expose:
- "5959"
restart: unless-stopped
neode-web:
build:
context: .
dockerfile: neode-ui/Dockerfile.web
container_name: archy-demo-web
ports:
- "4848:80"
depends_on:
- neode-backend
restart: unless-stopped