The mainnet buyer compose never set TTS_PIPER_BASE_URL (only testnet did), so the buyer booted with an empty value and POST /v1/synth-speech — the no-escrow demo proxy behind the "PiperTTS demo" tile — returned 503 "booted without TTS_PIPER_BASE_URL". Point it at the private piper backend over internal docker DNS (buyer is already on marketplace-mainnet-net). Verified: authenticated POST /v1/synth-speech returns 200 audio/mpeg. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
66 lines
2.2 KiB
YAML
66 lines
2.2 KiB
YAML
# deploy/mainnet/docker-compose.buyer.yml — Buyer (Express + Vite UI) — MAINNET
|
|
#
|
|
# Brought up on vector-marketplace at https://marketplace.vector.apexfusion.org.
|
|
# Operator login is gated by BUYER_PASSWORD + SESSION_SECRET (see buyer/.env).
|
|
#
|
|
# Code-level mainnet safety (env-gate / wallet allowlist / MAINNET=1 flag,
|
|
# tracked in ARCHITECTURE.md §9 #5) is still a separate open follow-up.
|
|
|
|
name: marketplace-mainnet-buyer
|
|
|
|
services:
|
|
buyer:
|
|
build:
|
|
context: ../..
|
|
dockerfile: buyer/Dockerfile
|
|
container_name: marketplace-mainnet-buyer
|
|
restart: unless-stopped
|
|
env_file:
|
|
- path: ../../buyer/.env
|
|
required: false
|
|
environment:
|
|
INDEXER_URL: http://marketplace-mainnet-indexer:8090
|
|
BUYER_PORT: "8070"
|
|
# PiperTTS demo (Path B): direct-proxy target for /v1/synth-speech. Piper is
|
|
# private on marketplace-mainnet-net (no public host), so use internal DNS.
|
|
# Without this the demo TTS tile 503s ("booted without TTS_PIPER_BASE_URL").
|
|
TTS_PIPER_BASE_URL: http://marketplace-mainnet-tts-piper:8000
|
|
# Pin the archive dir so it lands on the persistent volume below — keeps
|
|
# the response archive + PDF job store (past summaries) across container
|
|
# recreation/redeploys.
|
|
ARCHIVE_DIR: /repo/data/archive
|
|
# NETWORK_ID intentionally not pinned — see supplier compose comment.
|
|
volumes:
|
|
- buyer-mainnet-archive:/repo/data/archive
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:8070/healthz >/dev/null || exit 1"]
|
|
interval: 20s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
networks:
|
|
- marketplace-mainnet-net
|
|
- traefik-net
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=traefik-net"
|
|
- "traefik.http.routers.mp-buyer-mainnet.entrypoints=web"
|
|
- "traefik.http.routers.mp-buyer-mainnet.rule=Host(`marketplace.vector.apexfusion.org`)"
|
|
- "traefik.http.services.mp-buyer-mainnet.loadbalancer.server.port=8070"
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
marketplace-mainnet-net:
|
|
external: true
|
|
name: marketplace-mainnet-net
|
|
traefik-net:
|
|
external: true
|
|
name: traefik-net
|
|
|
|
volumes:
|
|
buyer-mainnet-archive:
|