mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* feat: add Phoenix LLM tracing service to the dev stack (ai profile) * chore(deps): add openinference pydantic-ai instrumentation (dev) * feat: export assistant traces to Phoenix when BASEROW_ASSISTANT_PHOENIX_URL is set * fix: harden Phoenix tracing setup after review * feat: Phoenix postgres storage, ai-evals profile and auth support * docs: ADR 007 and assistant tracing/evals guides * feat: assistant eval platform core (types, registries, scenarios) * feat: eval harness with shared assistant factory * feat: phoenix dataset sync for assistant evals * feat: assistant eval experiments via phoenix client + CLI * feat: migrate core, database and docs evals to the platform Ports the 42 kuma-core/kuma-database/kuma-docs pytest evals into declarative EvalCase/EvalScenario registrations, plus structure-level tests asserting dataset counts, ids, and scenario wiring. * feat: migrate builder and automation evals to the platform Ports the 12 builder + 2 proactive + 2 user-source cases into evals/datasets/builder.py (kuma-builder, 16 cases) and the 7 automation cases into evals/datasets/automation.py (kuma-automation), following the Task 5 pattern established in core.py/database.py. Extends eval_platform/test_datasets.py with counts, id lists, a mode-per-case assertion, and pre_state snapshot checks for the two cases that need one. * fix: link traces and final counts for single-case eval runs * fix: root spans for single-case eval runs use the assistant tracer provider * feat: assistant eval runner service with run page Adds the assistant_eval_runner management command (migrate -> instrumentation -> dataset sync -> single worker thread -> wsgiref server) and its runner.py module: a stdlib WSGI app serving a plain server-rendered page (GET /, POST /run, GET /healthz) backed by a bounded in-memory run history and one background worker draining a queue.Queue via run.run_experiment_for. Wires the assistant-eval-runner compose service (ai-evals profile, own baserow_evals DB), renames phoenix-db-init to ai-evals-db-init and extends it to also create baserow_evals, and adds BASEROW_EVAL_RUNNER_PORT to both env example files and the dev docs. * fix: eval runner integration fixes assistant-eval-runner needs its own SECRET_KEY/DATABASE_*/REDIS_* env vars: dev-overlay compose services don't inherit docker-compose.yml's x-backend-variables anchor (that's file-scoped YAML), so the container was starting without a Django SECRET_KEY and without a Redis password, crashing on auth. Also links to finished experiments pointed at the container-internal BASEROW_ASSISTANT_PHOENIX_URL (http://phoenix:6006), unreachable from the developer's browser. Adds BASEROW_ASSISTANT_PHOENIX_PUBLIC_URL (defaulting to http://localhost:${BASEROW_PHOENIX_PORT:-6060}) and has runner.py build the Phoenix link from it, deep-linking straight to the finished run's experiment compare view when its dataset_id/experiment_id are known, falling back to the datasets list otherwise. * refactor: retire the pytest eval harness All 65 eval cases now live in baserow_enterprise.assistant.evals.datasets; delete the legacy pytest-based suite and its `eval` markers. * docs: rewrite assistant evals guide for the Phoenix platform * feat: docs judge, prompt sync, git stamping and UI-contributed eval examples - answer_quality LLM-as-judge evaluator for kuma-docs (BASEROW_EVAL_JUDGE_MODEL) - Kuma prompts versioned into Phoenix on sync; experiments stamped with prompt hashes, git branch/commit and judge model - sync preserves UI-added dataset examples with prompt-match adoption; eval-export emits paste-ready docs.py snippets - final-review fixes: skip-safe scoring, runner CSRF/bind hardening, doc corrections * feat: eval runner UI round — tabs, fan-out, reference answers, 64-case docs dataset - Runner page: dataset tabs with selection badges, per-dataset and global all/none, cross-dataset fan-out (one experiment per dataset), 5s auto-refresh of runs, persistent run history across restarts, per-dataset Phoenix links, in-page Help tab rendering the repo docs via /docs.json. - Reference answers for kuma-docs: EvalCase.reference_answer, judge grades against it, sync preserves UI-curated ones, eval-export round-trips them. - kuma-docs grown to 64 cases: reference answers for all, PostHog-mined frequent questions, and cannot-do guardrail cases. - Gemini (google:gemini-3.6-flash) in the eval model list. * feat: runnable UI examples, prompt overrides, eval baseline and results view - UI-added Phoenix examples now execute: docs questions get the standard docs checks + judge; tool cases declare scenario/expected_tools/ answer_contains in metadata (empty-workspace default scenario). They are tickable per dataset on the runner page and run in whole-dataset experiments too. - Prompt overrides: run any experiment with a prompt's latest Phoenix version instead of the code constant (runner checkbox panel with soft per-tab ordering, or --override-prompt). Agent singletons keep their dynamic instructions; effective hashes + override list stamped on the experiment. - Committed baseline snapshot (evals/baseline.json, 111 cases) with just b eval-baseline capture/import; the runner imports it on startup so every Phoenix instance gets a baseline experiment per dataset, idempotent by content hash and run count. - Results tab: all datasets in one view for a named experiment, with baseline deltas and a case-weighted overall row, via Phoenix experiment annotation summaries. - New evaluation guide (docs/testing/ai-assistant-eval-analysis.md) served in the Help tab; layout uses horizontal space better (single tab row, fluid case columns). * feat: time and cost in eval results, frozen into the baseline snapshot - Results tab gains time (sum of run latencies) and cost/token columns per dataset and summed overall, with lower-is-better baseline deltas. - eval-baseline capture freezes each dataset's time/cost/token totals into baseline.json; import stamps them as metadata so imported baselines (which carry no traces to price) still show time and cost. - Importing a new baseline supersedes the previously imported one instead of accumulating duplicates. - Changelog entry for the eval platform. * fix: OpenInference attributes on subset-run task root spans Bare wrapper spans rendered as kind 'unknown' with Unset status and empty input/output in Phoenix. The Task root span now carries the CHAIN kind, the case prompt as input, the run result as JSON output, and an explicit OK status. * polish; minor fixes * fix: address eval platform review feedback Apply production model settings and retries, isolate automation checks, and fix runner configuration, links, and result status. Defer GPT-5.6 compatibility and baseline comparisons to #6034. * fix: preserve model profiles in rebased eval harness Use an explicit model profile for evals and share concrete models with tools. Manage model clients through the existing lifecycle helper and preserve regression coverage from the retired harness. * fix: harden eval persistence and Phoenix access
421 lines
15 KiB
YAML
421 lines
15 KiB
YAML
services:
|
|
db:
|
|
# use lowest supported version for dev to check compatibility
|
|
image: pgvector/pgvector:pg${POSTGRES_IMAGE_VERSION:-14}
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_POSTGRES_PORT:-5432}:5432"
|
|
command: "${POSTGRES_DEV_EXTRA_ARGS}"
|
|
volumes:
|
|
# Use a different volume in case the Major version is different from the
|
|
# production one to avoid issues.
|
|
- pgdatadev:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_DEBUG_REDIS_PORT:-6379}:6379"
|
|
|
|
# Override with the dev caddy file which switches Caddy to only be the media file
|
|
# server in the dev env. Devs will instead directly connect to the backend and
|
|
# web frontend services.
|
|
caddy:
|
|
volumes:
|
|
- $PWD/Caddyfile.dev:/etc/caddy/Caddyfile
|
|
|
|
backend:
|
|
image: baserow_backend:dev
|
|
environment:
|
|
- OAUTHLIB_INSECURE_TRANSPORT
|
|
- BASEROW_BACKEND_DEBUGGER_ENABLED
|
|
- BASEROW_BACKEND_DEBUGGER_PORT=${BASEROW_BACKEND_DEBUGGER_PORT:-5678}
|
|
- BASEROW_DANGEROUS_SILKY_ANALYZE_QUERIES
|
|
- BASEROW_ENABLE_SILK
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
|
|
- OTEL_TRACES_SAMPLER=always_on
|
|
- BASEROW_EMBEDDINGS_API_URL=${BASEROW_EMBEDDINGS_API_URL}
|
|
- BASEROW_ASSISTANT_PHOENIX_URL=${BASEROW_ASSISTANT_PHOENIX_URL:-}
|
|
- BASEROW_ASSISTANT_PHOENIX_API_KEY=${BASEROW_ASSISTANT_PHOENIX_API_KEY:-}
|
|
build:
|
|
dockerfile: ./backend/Dockerfile
|
|
context: .
|
|
target: dev
|
|
args:
|
|
# We allow configuring the UID/GID here so you can run as the dev's actual user
|
|
# reducing the chance the containers screw up the bind mounted folders.
|
|
UID: $UID
|
|
GID: $GID
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_BACKEND_HOST_PORT:-8000}:8000"
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_BACKEND_DEBUGGER_PORT:-5678}:${BASEROW_BACKEND_DEBUGGER_PORT:-5678}"
|
|
volumes:
|
|
- ./docs:/baserow/docs
|
|
- ./backend:/baserow/backend
|
|
- ./premium/backend/:/baserow/premium/backend
|
|
- ./enterprise/backend/:/baserow/enterprise/backend
|
|
- ./deploy/plugins/:/baserow/plugins/
|
|
- ./tests:/baserow/tests
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
depends_on:
|
|
- otel-collector
|
|
|
|
web-frontend:
|
|
image: baserow_web-frontend:dev
|
|
build:
|
|
dockerfile: ./web-frontend/Dockerfile
|
|
context: .
|
|
target: dev
|
|
args:
|
|
# We allow configuring the UID/GID here so you can run as the dev's actual user
|
|
# reducing the chance the containers screw up the bind mounted folders.
|
|
UID: $UID
|
|
GID: $GID
|
|
command: "nuxt-dev"
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_WEB_FRONTEND_DEV_PORT:-3000}:3000"
|
|
volumes:
|
|
- ./web-frontend:/baserow/web-frontend
|
|
- ./premium/web-frontend/:/baserow/premium/web-frontend
|
|
- ./enterprise/web-frontend/:/baserow/enterprise/web-frontend
|
|
- ./tests/:/baserow/tests
|
|
- ./deploy/plugins:/baserow/plugins
|
|
# dev volumes to avoid polluting your local filesystem with build files or
|
|
# overwriting existing node_modules.
|
|
- node_modules:/baserow/web-frontend/node_modules
|
|
- nuxt:/baserow/web-frontend/.nuxt/
|
|
- cache:/baserow/web-frontend/.cache/
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
storybook:
|
|
image: baserow_web-frontend:dev
|
|
profiles: ["optional"]
|
|
build:
|
|
dockerfile: ./web-frontend/Dockerfile
|
|
context: .
|
|
target: dev
|
|
args:
|
|
# We allow configuring the UID/GID here so you can run as the dev's actual user
|
|
# reducing the chance the containers screw up the bind mounted folders.
|
|
UID: $UID
|
|
GID: $GID
|
|
command: "storybook-dev"
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_STORYBOOK_PORT:-6006}:6006"
|
|
volumes:
|
|
- ./web-frontend:/baserow/web-frontend
|
|
- ./premium/web-frontend/:/baserow/premium/web-frontend
|
|
- ./enterprise/web-frontend/:/baserow/enterprise/web-frontend
|
|
- ./tests/:/baserow/tests
|
|
- ./deploy/plugins:/baserow/plugins
|
|
# dev volumes to avoid polluting your local filesystem with build files or
|
|
# overwriting existing node_modules.
|
|
- node_modules:/baserow/web-frontend/node_modules
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost:6006/"]
|
|
interval: 60s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
celery:
|
|
image: baserow_backend:dev
|
|
user: "${UID}:${GID}"
|
|
command: "watch-py celery-worker"
|
|
environment:
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
|
|
- OTEL_TRACES_SAMPLER=always_on
|
|
- BASEROW_DANGEROUS_SILKY_ANALYZE_QUERIES
|
|
- BASEROW_ASSISTANT_PHOENIX_URL=${BASEROW_ASSISTANT_PHOENIX_URL:-}
|
|
- BASEROW_ASSISTANT_PHOENIX_API_KEY=${BASEROW_ASSISTANT_PHOENIX_API_KEY:-}
|
|
volumes:
|
|
- ./docs:/baserow/docs
|
|
- ./backend:/baserow/backend
|
|
- ./premium/backend/:/baserow/premium/backend
|
|
- ./enterprise/backend/:/baserow/enterprise/backend
|
|
- ./deploy/plugins:/baserow/plugins
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
depends_on:
|
|
- otel-collector
|
|
|
|
celery-export-worker:
|
|
image: baserow_backend:dev
|
|
user: "${UID}:${GID}"
|
|
command: "watch-py celery-exportworker"
|
|
environment:
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
|
|
- OTEL_TRACES_SAMPLER=always_on
|
|
- BASEROW_DANGEROUS_SILKY_ANALYZE_QUERIES
|
|
volumes:
|
|
- ./docs:/baserow/docs
|
|
- ./backend:/baserow/backend
|
|
- ./premium/backend/:/baserow/premium/backend
|
|
- ./enterprise/backend/:/baserow/enterprise/backend
|
|
- ./deploy/plugins:/baserow/plugins
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
depends_on:
|
|
- otel-collector
|
|
|
|
celery-beat-worker:
|
|
image: baserow_backend:dev
|
|
user: "${UID}:${GID}"
|
|
command: "watch-py celery-beat"
|
|
environment:
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
|
|
- OTEL_TRACES_SAMPLER=always_on
|
|
volumes:
|
|
- ./backend:/baserow/backend
|
|
- ./premium/backend/:/baserow/premium/backend
|
|
- ./enterprise/backend/:/baserow/enterprise/backend
|
|
- ./deploy/plugins:/baserow/plugins
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
celery-flower:
|
|
image: baserow_backend:dev
|
|
user: "${UID}:${GID}"
|
|
profiles: ["optional"]
|
|
restart: unless-stopped
|
|
stop_signal: SIGQUIT
|
|
command: "celery-flower"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl --fail http://localhost:5555 || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
environment:
|
|
REDIS_HOST:
|
|
REDIS_PORT:
|
|
REDIS_PROTOCOL:
|
|
REDIS_URL:
|
|
REDIS_SSL_CERT_REQS:
|
|
REDIS_SSL_CA_CERTS:
|
|
REDIS_USER:
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD:?}
|
|
volumes:
|
|
- ./backend:/baserow/backend
|
|
- ./premium/backend/:/baserow/premium/backend
|
|
- ./enterprise/backend/:/baserow/enterprise/backend
|
|
- ./deploy/plugins:/baserow/plugins
|
|
- media:/baserow/media
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_CELERY_FLOWER_PORT:-5555}:5555" # web ui
|
|
networks:
|
|
local:
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
mjml-email-compiler:
|
|
image: baserow_web-frontend:dev
|
|
depends_on:
|
|
- web-frontend
|
|
user: "${UID}:${GID}"
|
|
command: "bash -c 'cd /baserow/backend/email_compiler/ && yarn install && yarn run watch'"
|
|
healthcheck:
|
|
disable: true
|
|
volumes:
|
|
- ./backend:/baserow/backend
|
|
- ./web-frontend/docker:/baserow/web-frontend/docker
|
|
- ./deploy/plugins:/baserow/plugins
|
|
# Open stdin and tty so when attaching key input works as expected.
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
mailhog:
|
|
image: mailhog/mailhog
|
|
logging:
|
|
driver: "none" # disable saving logs
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_MAILHOG_SMTP_PORT:-1025}:1025" # smtp
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_MAILHOG_WEB_PORT:-8025}:8025" # web ui
|
|
networks:
|
|
local:
|
|
|
|
keycloak:
|
|
image: quay.io/keycloak/keycloak:26.2
|
|
profiles: ["authentication"]
|
|
command: ["start-dev", "--import-realm"]
|
|
environment:
|
|
KC_BOOTSTRAP_ADMIN_USERNAME: admin
|
|
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
|
|
# Browser-facing URLs use localhost, while backchannel URLs are resolved from
|
|
# the request so backend containers can communicate with http://keycloak:8080.
|
|
KC_HOSTNAME: http://localhost:${BASEROW_KEYCLOAK_PORT:-8081}
|
|
KC_HOSTNAME_BACKCHANNEL_DYNAMIC: "true"
|
|
PUBLIC_BACKEND_URL: ${PUBLIC_BACKEND_URL:-http://localhost:8000}
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_KEYCLOAK_PORT:-8081}:8080"
|
|
volumes:
|
|
- ./deploy/keycloak/baserow-dev-realm.json:/opt/keycloak/data/import/baserow-dev-realm.json:ro
|
|
networks:
|
|
local:
|
|
# Dotted alias so a Docker-internal backend can reach Keycloak with a URL
|
|
# the frontend OIDC form accepts (its `url` validator rejects dotless
|
|
# hostnames like `keycloak` and private IPs). See docs/development/builder-authentication.md.
|
|
aliases:
|
|
- keycloak.internal
|
|
|
|
# When switching between dev and local the media files in the media volume will be
|
|
# owned by different users. Ensure that we chown them to the user appropriate for the
|
|
# environment here.
|
|
volume-permissions-fixer:
|
|
image: bash:4.4
|
|
command: chown ${UID:-9999}:${GID:-9999} -R /baserow/media
|
|
volumes:
|
|
- media:/baserow/media
|
|
- caddy_config:/config
|
|
- caddy_data:/data
|
|
networks:
|
|
local:
|
|
|
|
otel-collector:
|
|
image: otel/opentelemetry-collector-contrib:0.153.0
|
|
command:
|
|
- "--config=/etc/otel-collector-config.yaml"
|
|
- "--feature-gates=processor.tailsamplingprocessor.recordpolicy"
|
|
environment:
|
|
HONEYCOMB_API_KEY:
|
|
HONEYCOMB_METRICS_DATASET: baserow-dev-metrics
|
|
BASEROW_OTEL_TAIL_SAMPLING_DECISION_WAIT: ${BASEROW_OTEL_TAIL_SAMPLING_DECISION_WAIT:-5m}
|
|
BASEROW_OTEL_TAIL_SAMPLING_DECISION_WAIT_AFTER_ROOT_RECEIVED: ${BASEROW_OTEL_TAIL_SAMPLING_DECISION_WAIT_AFTER_ROOT_RECEIVED:-5s}
|
|
BASEROW_OTEL_TAIL_SAMPLING_MAX_SPANS_PER_SECOND: ${BASEROW_OTEL_TAIL_SAMPLING_MAX_SPANS_PER_SECOND:-250}
|
|
BASEROW_OTEL_USER_METRICS_CARDINALITY_LIMIT: ${BASEROW_OTEL_USER_METRICS_CARDINALITY_LIMIT:-50000}
|
|
BASEROW_OTEL_USER_METRICS_FLUSH_INTERVAL: ${BASEROW_OTEL_USER_METRICS_FLUSH_INTERVAL:-60s}
|
|
BASEROW_OTEL_USER_METRICS_SERIES_EXPIRATION: ${BASEROW_OTEL_USER_METRICS_SERIES_EXPIRATION:-5m}
|
|
volumes:
|
|
- $PWD/deploy/otel/otel-collector-config.yaml:/etc/otel-collector-config.yaml
|
|
networks:
|
|
local:
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_OTEL_COLLECTOR_PORT:-4318}:4318"
|
|
|
|
embeddings:
|
|
profiles: ["ai"]
|
|
build:
|
|
context: ./embeddings
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_EMBEDDINGS_PORT:-7999}:80"
|
|
networks:
|
|
local:
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"python",
|
|
"-c",
|
|
"import requests; requests.get('http://localhost/health').raise_for_status()",
|
|
]
|
|
interval: 1m30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
ai-evals-db-init:
|
|
profiles: ["ai-evals"]
|
|
image: pgvector/pgvector:pg${POSTGRES_IMAGE_VERSION:-14}
|
|
environment:
|
|
- PGHOST=db
|
|
- PGUSER=${DATABASE_USER:-baserow}
|
|
- PGPASSWORD=${DATABASE_PASSWORD:?}
|
|
command: sh -c "createdb phoenix || true; createdb baserow_evals || true"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
networks:
|
|
local:
|
|
restart: "no"
|
|
|
|
phoenix:
|
|
profiles: ["ai-evals"]
|
|
image: arizephoenix/phoenix:version-20.3.0
|
|
environment:
|
|
- PHOENIX_SQL_DATABASE_URL=postgresql://${DATABASE_USER:-baserow}:${DATABASE_PASSWORD:?}@db:5432/phoenix
|
|
# Provider keys for the Phoenix prompt playground (same vars the evals use).
|
|
- GROQ_API_KEY=${GROQ_API_KEY:-}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_PHOENIX_PORT:-6060}:6006"
|
|
networks:
|
|
local:
|
|
restart: unless-stopped
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
ai-evals-db-init:
|
|
condition: service_completed_successfully
|
|
|
|
assistant-eval-runner:
|
|
image: baserow_backend:dev
|
|
user: "${UID}:${GID}"
|
|
profiles: ["ai-evals"]
|
|
restart: unless-stopped
|
|
command: "watch-py manage assistant_eval_runner --host 0.0.0.0"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl --fail http://localhost:8090/healthz || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 3m
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY:?}
|
|
- DATABASE_NAME=baserow_evals
|
|
- DATABASE_USER=${DATABASE_USER:-baserow}
|
|
- DATABASE_PASSWORD=${DATABASE_PASSWORD:?}
|
|
- DATABASE_HOST=db
|
|
- REDIS_HOST=redis
|
|
- REDIS_PASSWORD=${REDIS_PASSWORD:?}
|
|
- BASEROW_ASSISTANT_PHOENIX_URL=${BASEROW_ASSISTANT_PHOENIX_URL:-http://phoenix:6006}
|
|
- BASEROW_ASSISTANT_PHOENIX_PUBLIC_URL=${BASEROW_ASSISTANT_PHOENIX_PUBLIC_URL:-http://localhost:${BASEROW_PHOENIX_PORT:-6060}}
|
|
- BASEROW_ASSISTANT_PHOENIX_API_KEY=${BASEROW_ASSISTANT_PHOENIX_API_KEY:-}
|
|
- BASEROW_EMBEDDINGS_API_URL=${BASEROW_EMBEDDINGS_API_URL:-}
|
|
- GROQ_API_KEY=${GROQ_API_KEY:-}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
|
|
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
|
|
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
|
|
- BASEROW_EVAL_GIT_BRANCH=${BASEROW_EVAL_GIT_BRANCH:-}
|
|
- BASEROW_EVAL_GIT_COMMIT=${BASEROW_EVAL_GIT_COMMIT:-}
|
|
- BASEROW_EVAL_JUDGE_MODEL=${BASEROW_EVAL_JUDGE_MODEL:-}
|
|
- BASEROW_EVAL_CASE_TIMEOUT=${BASEROW_EVAL_CASE_TIMEOUT:-}
|
|
- BASEROW_EVAL_RUNNER_LOG_LEVEL=${BASEROW_EVAL_RUNNER_LOG_LEVEL:-}
|
|
ports:
|
|
- "${BASEROW_HOST_PUBLISH_IP:-127.0.0.1}:${BASEROW_EVAL_RUNNER_PORT:-8090}:8090"
|
|
volumes:
|
|
- ./docs:/baserow/docs
|
|
- ./backend:/baserow/backend
|
|
- ./premium/backend/:/baserow/premium/backend
|
|
- ./enterprise/backend/:/baserow/enterprise/backend
|
|
- ./deploy/plugins:/baserow/plugins
|
|
networks:
|
|
local:
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
ai-evals-db-init:
|
|
condition: service_completed_successfully
|
|
phoenix:
|
|
condition: service_started
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
volumes:
|
|
pgdatadev:
|
|
node_modules:
|
|
nuxt:
|
|
storybook:
|
|
cache:
|