mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-21 08:00:48 +00:00
- ci: replace inline smoke test with docker-compose.test.yml + scripts/docker-smoke-test.sh (9 checks) - add .env.example, .env.example.test, .anyllm.env.example, docker-compose.test.yml - gitignore: add .anyllm.env*, *.db-shm, *.db-wal patterns - admin UI: fix auth store, vite config, App.tsx updates; rebuild dist - admin routes: keys, traffic, mod, db, health_check updates - server: gemini_input, mod, routes adjustments - translator: lib.rs, gemini_message_map, tools_map fixes - batch: anthropic_batch cleanup - docs: add React admin UI plan Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
824 B
YAML
28 lines
824 B
YAML
# docker-compose.test.yml
|
|
#
|
|
# Ephemeral test stack — no real API key required.
|
|
# Usage:
|
|
# docker compose -f docker-compose.test.yml up -d --build
|
|
# bash scripts/docker-smoke-test.sh
|
|
# docker compose -f docker-compose.test.yml down -v
|
|
|
|
services:
|
|
proxy:
|
|
build: .
|
|
env_file: .env.example.test
|
|
environment:
|
|
# Bind admin to all interfaces so Docker port mapping reaches it.
|
|
# Host-side 127.0.0.1:3001 binding limits external exposure.
|
|
ADMIN_BIND: "0.0.0.0"
|
|
# Ephemeral DB — no named volume needed for tests.
|
|
ADMIN_DB_PATH: /tmp/test-admin.db
|
|
ports:
|
|
- "3000:3000"
|
|
- "127.0.0.1:3001:3001"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 6
|
|
start_period: 5s
|