evOo-local/infra/compose/docker-compose.prod.yml
cynarAI a55ed44394
One product: evOo updates and name, phone actions, German on mobile, working account deletion, consistent settings (#168)
* Pull updates from evOo instead of the upstream Rakazo repository

The in-app server updater, the image-based compose files and the desktop
auto-updater still pointed at elie222/rakazo, so updating an evOo install
would have pulled Rakazo. They now follow cynarAI/evOo-local, where the
publish workflow already pushes the images. The disabled Rakazo production
deploy job is gone from CI; evo deploys itself.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Call the product evOo everywhere people see its name

The desktop setup window and menu, account emails, the iOS app name and
permission prompts, sign-in headings, messages bots post into connected chat
apps, the web fetch user agent, issue templates and the marketing site still
said Rakazo, or EvOo. They now say evOo. The marketing site no longer calls
evOo an alternative to itself.

Internal identifiers (package scopes, env vars, bundle ids, the desktop
productName that keys its data folder and keychain entry) stay as they are.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Open conversation actions by holding a row on a phone

Pin, move to folder, mark unread, duplicate, archive and delete only opened
on right-click, which iOS Safari never fires. Holding a conversation or a
folder header now dispatches the same contextmenu event, so the existing menu
opens under the finger; Android's own long-press event is not doubled and the
lift does not also open the conversation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Give small chrome icons a 44px touch area on phones

The browser and computer toggles, the activity bell, the create button and the
section plus buttons were 18 to 36 px targets. On touch screens each now gets
an invisible 44px hit area without changing how it looks; the create button
uses the same plus icon as the rest of the sidebar instead of a text glyph,
and the computer toggle gets an accessible name.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Add German to the mobile app

German speakers saw the phone app in English because the mobile UI only
knew English, Simplified Chinese, and Russian. The app now ships a German
catalog covering every mobile chrome string, follows a German device
language (de, de-DE, de-AT, de-CH, ...), and offers Deutsch in the Account
language picker.

Strings that also exist in the web German catalog reuse its wording so
web and phone say the same thing; the rest follow the same terms and the
informal "du".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Use the evOo sign-in strings in the German phone catalog

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Make account deletion work and give settings one section style

Deleting an account posted to the auth endpoint without a JSON content
type, so the server refused it and the button did nothing. The privacy
page now deletes through the auth client and returns to sign-in. It also
drops the claims it could not verify, the export button that only showed
an alert, and its own padding, and shows where the data and the computer
live. Notifications and media settings use the same SettingsSection.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Use status tokens, the shared switch and one German glossary

Voice stage dots, the onboarding progress bar and the Voice First button
used raw emerald, violet, cyan and rose; they now use foreground, success
and destructive like the rest of the app. The routine editor's hand-built
switch is the shared Switch. German says Unterhaltung for threads and
Space consistently on web and phone.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Expect the evOo setup copy in the desktop e2e specs

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Translate the voice preview label in the German phone catalog

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

* Wait for the main thread URL without waiting for every resource

openMainBotThread already navigated with domcontentloaded; its URL check
then waited for the full load event, which can exceed 20 s on a busy
runner. The composer check that follows covers readiness.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-06 00:38:31 +02:00

277 lines
9.3 KiB
YAML

name: rakazo-prod
services:
postgres:
image: ${POSTGRES_IMAGE:-postgres:16@sha256:e17e86066e5ef83e0952a9347f5c792b7ece00972e2aa787a6986f471b3dd3d5}
restart: unless-stopped
security_opt:
- no-new-privileges:true
pids_limit: 200
mem_limit: 2g
environment:
POSTGRES_USER: ${POSTGRES_USER:-rakazo}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
POSTGRES_DB: ${POSTGRES_DB:-rakazo}
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-rakazo} -d ${POSTGRES_DB:-rakazo}"]
interval: 5s
timeout: 5s
retries: 20
api:
# The tag is what the updater moves. `docker compose pull` fetches it, `up -d` recreates onto
# it, and the previous tag stays in .env so a rollback is one redeploy rather than a rebuild.
#
# The default tag is `local`, which no registry serves, so a fresh install builds from the
# checkout via `up -d --build` instead of failing on a `pull` of an image that does not exist
# yet. Once a release is published, pin RAKAZO_IMAGE_TAG to it and the pull path takes over.
image: ${RAKAZO_IMAGE:-ghcr.io/cynarai/evoo-local/app}:${RAKAZO_IMAGE_TAG:-local}
build:
context: ../..
dockerfile: infra/compose/Dockerfile
args:
GIT_SHA: ${GIT_SHA:-}
restart: unless-stopped
command:
- bash
- -lc
- pnpm --filter @rakazo/db exec prisma migrate deploy && pnpm --filter @rakazo/api start
init: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
pids_limit: 256
mem_limit: 1536m
env_file:
- ../../.env
environment:
NODE_ENV: production
API_HOST: "0.0.0.0"
DATABASE_URL: postgres://${POSTGRES_USER:-rakazo}:${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}@postgres:5432/${POSTGRES_DB:-rakazo}
DATA_DIR: /data
SANDBOX_PROVIDER: ${SANDBOX_PROVIDER:-e2b}
CLOUD_AGENT_PROVIDER: ${CLOUD_AGENT_PROVIDER:-none}
CLOUD_AGENT_SPACE_ID: ${CLOUD_AGENT_SPACE_ID:-}
CURSOR_API_KEY: ${CURSOR_API_KEY:-}
WAKEUP_DRIVER: graphile
AGENT_RUNTIME: pi
# Optional egress proxy (Mainland / corporate). Empty = unset; either case works.
HTTP_PROXY: ${HTTP_PROXY:-${http_proxy:-}}
HTTPS_PROXY: ${HTTPS_PROXY:-${https_proxy:-}}
NO_PROXY: ${NO_PROXY:-${no_proxy:-}}
http_proxy: ${http_proxy:-${HTTP_PROXY:-}}
https_proxy: ${https_proxy:-${HTTPS_PROXY:-}}
no_proxy: ${no_proxy:-${NO_PROXY:-}}
RAKAZO_UPDATER_URL: http://updater:7092
expose:
- "3100"
volumes:
- appdata:/data
networks:
- app
- data
- control
depends_on:
postgres:
condition: service_healthy
healthcheck:
test:
- CMD
- node
- -e
- fetch('http://127.0.0.1:3100/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
interval: 10s
timeout: 5s
retries: 20
worker:
image: ${RAKAZO_IMAGE:-ghcr.io/cynarai/evoo-local/app}:${RAKAZO_IMAGE_TAG:-local}
build:
context: ../..
dockerfile: infra/compose/Dockerfile
args:
GIT_SHA: ${GIT_SHA:-}
restart: unless-stopped
command: ["pnpm", "--filter", "@rakazo/worker", "start"]
init: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
pids_limit: 512
mem_limit: 2g
env_file:
- ../../.env
environment:
BETTER_AUTH_SECRET: ""
NODE_ENV: production
DATABASE_URL: postgres://${POSTGRES_USER:-rakazo}:${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}@postgres:5432/${POSTGRES_DB:-rakazo}
DATA_DIR: /data
SANDBOX_PROVIDER: ${SANDBOX_PROVIDER:-e2b}
CLOUD_AGENT_PROVIDER: ${CLOUD_AGENT_PROVIDER:-none}
CLOUD_AGENT_SPACE_ID: ${CLOUD_AGENT_SPACE_ID:-}
CURSOR_API_KEY: ${CURSOR_API_KEY:-}
SCREEN_PROXY_SECRET: ""
WAKEUP_DRIVER: graphile
AGENT_RUNTIME: pi
# Optional egress proxy (Mainland / corporate). Empty = unset; either case works.
HTTP_PROXY: ${HTTP_PROXY:-${http_proxy:-}}
HTTPS_PROXY: ${HTTPS_PROXY:-${https_proxy:-}}
NO_PROXY: ${NO_PROXY:-${no_proxy:-}}
http_proxy: ${http_proxy:-${HTTP_PROXY:-}}
https_proxy: ${https_proxy:-${HTTPS_PROXY:-}}
no_proxy: ${no_proxy:-${NO_PROXY:-}}
volumes:
- appdata:/data
networks:
- app
- data
depends_on:
postgres:
condition: service_healthy
api:
condition: service_healthy
web:
image: ${RAKAZO_IMAGE:-ghcr.io/cynarai/evoo-local/app}:${RAKAZO_IMAGE_TAG:-local}
build:
context: ../..
dockerfile: infra/compose/Dockerfile
args:
GIT_SHA: ${GIT_SHA:-}
restart: unless-stopped
command: ["pnpm", "--filter", "@rakazo/web", "preview", "--host", "0.0.0.0", "--port", "5173"]
init: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
pids_limit: 128
mem_limit: 512m
environment:
NODE_ENV: production
API_PROXY_TARGET: http://api:3100
RAKAZO_HOST: ${RAKAZO_HOST:-app.example.com}
SCREEN_PROXY_SECRET: ${SCREEN_PROXY_SECRET:?Set SCREEN_PROXY_SECRET in .env}
expose:
- "5173"
networks:
- edge
- app
depends_on:
api:
condition: service_healthy
# The updater holds the Docker socket, which is root-equivalent on the host, so it is opt-in and
# deliberately the narrowest service here: no `ports` (nothing on the host), only the dedicated
# `control` network shared with the API, and no `env_file` — secrets stay in the bind-mounted
# `.env` that Compose reads for interpolation, not in this process. Caddy has no route to it. The
# API reaches it as http://updater:7092 with the shared token. It is also the one service the
# update never recreates, because it is the process performing the update.
updater:
profiles: [updater]
# Pinned separately from the application image: the updater does not recreate itself, so moving
# its own version is an operator action, not something an update can do underneath itself.
image: ${RAKAZO_UPDATER_IMAGE:-ghcr.io/cynarai/evoo-local/updater}:${RAKAZO_UPDATER_IMAGE_TAG:-local}
build:
context: ../..
dockerfile: infra/updater/Dockerfile
args:
GIT_SHA: ${GIT_SHA:-}
restart: unless-stopped
init: true
user: root
security_opt:
- no-new-privileges:true
pids_limit: 256
mem_limit: 1g
environment:
NODE_ENV: production
# Keep interpolation optional so deployments that do not enable this profile need no token.
# resolveUpdaterConfig still refuses to start the sidecar without a dedicated secure value.
RAKAZO_UPDATER_TOKEN: ${RAKAZO_UPDATER_TOKEN:-}
RAKAZO_UPDATER_HOST: "0.0.0.0"
RAKAZO_UPDATER_PORT: "7092"
RAKAZO_IMAGE: ${RAKAZO_IMAGE:-ghcr.io/cynarai/evoo-local/app}
# `-p` is available to Compose interpolation but is not injected into containers unless it is
# declared here. The sidecar must target the project the operator actually started.
COMPOSE_PROJECT_NAME: ${COMPOSE_PROJECT_NAME:-rakazo-prod}
# Must equal the host path it is mounted from, or every relative bind mount in this file would
# resolve somewhere else. /srv/rakazo is the supported Linux production layout.
RAKAZO_DEPLOY_DIR: ${RAKAZO_DEPLOY_DIR:-/srv/rakazo}
# A deployment that layers an overlay has to be reconciled with the same file list and the
# same services the operator runs by hand, so these are read from the environment rather
# than pinned to the base stack. Defaults reproduce the previous behaviour exactly.
RAKAZO_COMPOSE_FILE: ${RAKAZO_COMPOSE_FILE:-infra/compose/docker-compose.prod.yml}
RAKAZO_UPDATE_SERVICES: ${RAKAZO_UPDATE_SERVICES:-}
COMPOSE_PATH_SEPARATOR: ${COMPOSE_PATH_SEPARATOR:-}
LOG_LEVEL: ${LOG_LEVEL:-info}
LOG_FORMAT: ${LOG_FORMAT:-}
AXIOM_TOKEN: ${AXIOM_TOKEN:-}
AXIOM_DATASET: ${AXIOM_DATASET:-}
AXIOM_EDGE: ${AXIOM_EDGE:-}
AXIOM_EDGE_URL: ${AXIOM_EDGE_URL:-}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${RAKAZO_DEPLOY_DIR:-/srv/rakazo}:${RAKAZO_DEPLOY_DIR:-/srv/rakazo}
networks:
- control
healthcheck:
test:
- CMD
- node
- -e
- fetch('http://127.0.0.1:7092/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
interval: 15s
timeout: 5s
retries: 10
caddy:
image: ${CADDY_IMAGE:-caddy:2@sha256:df7f1c2fb114453b951de51a98efc010db1655a92c2e86be6706714e2417a78d}
restart: unless-stopped
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
pids_limit: 128
mem_limit: 256m
environment:
RAKAZO_HOST: ${RAKAZO_HOST:-app.example.com}
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ${CADDYFILE_PATH:-./Caddyfile.prod}:/etc/caddy/Caddyfile:ro
- caddydata:/data
- caddyconfig:/config
networks:
- edge
- app
tmpfs:
- /tmp
depends_on:
web:
condition: service_started
volumes:
pgdata:
appdata:
caddydata:
caddyconfig:
networks:
edge:
app:
control:
data:
internal: true