Phase 0: turn Supermarket into a Dockerized local web app
Replace the old Go TUI with a web app (port 8470) that runs in a container as a CoreDesktop sibling: - cmd/supermarket server with htmx web UI: dashboard, company profile, inventory (partners/competitors), AI and credential settings, and a Core & Hermes page - SQLite storage and a secrets store under ~/.local/share/supermarket - AI providers (Anthropic, OpenAI-compatible) behind one interface - MCP server and a Hermes bridge to the Federated Core MCP hub - Import of the old Coremarketing TUI's state - install.sh / update.sh / lib.sh, Dockerfile, compose.yaml, the bin/supermarket launcher and hermes/setup.sh Posting is not wired back up yet; that comes in Phase 1. See PLAN.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Run through `supermarket` (bin/supermarket) or update.sh, which pass
|
||||
# --env-file ~/.local/share/supermarket/compose.env with the values below.
|
||||
name: supermarket
|
||||
|
||||
services:
|
||||
supermarket:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
VERSION: ${SUPERMARKET_VERSION:-dev}
|
||||
image: supermarket:local
|
||||
container_name: supermarket
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
# Run as you, so the files in the data folder stay yours.
|
||||
user: "${SUPERMARKET_UID:?}:${SUPERMARKET_GID:?}"
|
||||
# Only this computer can reach the app: it has no login of its own.
|
||||
ports:
|
||||
- "127.0.0.1:8470:8080"
|
||||
environment:
|
||||
SUPERMARKET_PUBLIC_URL: http://localhost:8470
|
||||
volumes:
|
||||
- ${SUPERMARKET_DATA:?}:/data
|
||||
# LLM servers on this computer are at host.docker.internal.
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
Reference in New Issue
Block a user