aido-onyx/docker-compose.branding.yml
livdebus 1d650c4d30 refactor: flatten structure, sparse-checkout upstream, add base compose for dockge/traefik
Replace the nested `onyx/` full-clone approach with a flattened, self-contained
deployment structure:

- `make setup` now uses `git sparse-checkout` to fetch only `web/` and
  `deployment/data/nginx/` from upstream, extracting them flat into `./web`
  and `./data/nginx`. This avoids downloading the entire Onyx repository
  when we only rebuild the branded web container ourselves.
- Add a top-level `docker-compose.yml` as the base stack file instead of
  referencing paths inside `onyx/deployment/...`. This keeps the compose
  project in the repo root so it can be managed by dockge and simplifies
  putting Traefik in front of the Onyx nginx.
- Update `docker-compose.branding.yml` build context from `./onyx/web` to `./web`.
- Update `branding.config.json`:
  - `webSrcRoot`: `onyx/web` → `web`
  - `pinnedCommit`: pinned hash → `main`
  - Add rename literals for "Open Source AI Platform" → "Powered by Livtec"
    and `https://www.onyx.app` → `https://livtec.cloud`
- Replace the minimal `.env.example` with the full Onyx deployment template.
- Add `setup.sh` for server provisioning (Node.js 25, make, /opt/stacks/onyx).
- Update `make verify` to search `./web/src` instead of `./onyx/web/src`.

All backend/model services continue to use official upstream Docker images;
only the `web_server` image is built locally from the branded source.
2026-06-29 12:43:31 +02:00

28 lines
1.7 KiB
YAML

# ─────────────────────────────────────────────────────────────────────────────
# Livtec / AIDO white-label override for Onyx Community Edition.
#
# This is a THIN OVERLAY on top of Onyx's own upstream compose file. Every service
# (backend, model servers, postgres, opensearch, redis, minio, nginx, …) is pulled
# UNCHANGED from the official images. The only thing we build locally is the web
# frontend — from ./onyx/web, into which branding/apply-branding.mjs has baked the
# AIDO logo, favicon, name and links.
#
# It is always used together with an upstream base file, e.g.:
# docker compose --project-directory . \
# -f onyx/deployment/docker_compose/docker-compose.prod-no-letsencrypt.yml \
# -f docker-compose.branding.yml build web_server
#
# (The Makefile in this directory wraps that for you: `make rebrand`.)
# ─────────────────────────────────────────────────────────────────────────────
services:
web_server:
# Tag the branded image under our own name so it never clobbers the official
# onyxdotapp/onyx-web-server image in the local cache.
image: livtec/aido-web:${AIDO_TAG:-local}
build:
# Project directory is the repo root (--project-directory .), so point the
# build context at the branded source. Everything else inherits from the
# upstream base file (Dockerfile, NEXT_PUBLIC build args).
context: ./web
dockerfile: Dockerfile
pull_policy: never