aiv ... --target compose invokes native Compose and performs the necessary checks before changing a deployment. It needs no host Python or additional control script. Use aiv for routine deployment, status, logs, rebuilding and stopping. Native Compose remains a read-only configuration and troubleshooting entry point below.
First complete CLI installation, persistent PATH and verification in a new terminal, retaining the fixed installation. This example uses the default state root; existing deployments must keep their original namespace, workdir and blueprint.
Optional: create a Compose project through aiv
This is a current-source capability. Use a CLI confirmed to contain--target compose with matching images. If no release is confirmed to include it, follow the source build steps for the matching revision, then inspect aiv cast --help. A dev tag, version string or OB_BACKEND support does not establish this target.
For a new installation, use the Docker configuration steps to prepare private vars, the database choice, fixed UTC history start and images, then explicitly select Compose:
--target compose, the original namespace and customized --workdir / --file on every Compose CLI operation. Omitting the target selects default Docker. Existing Docker installations remain supported by their original default method and are not converted automatically. Do not mix ownership, change labels or delete records to adopt resources.
The CLI displays the actual immutable private bundle path under <namespace-state>/compose/bundles/<hash>/. Retain that directory and CLI state. Change configuration/images through the original vars file or --var and cast, not generated-file edits. Status, logs and destroy use the saved bundle rather than retargeting from new defaults or ambient variables.
Rebuilding and stopping this CLI bundle project also retain the same selectors:
redeploy requires a maintenance window. Resume a stopped deployment with the complete original cast. The standalone Compose-file mode below uses different selectors; do not mix the modes.
Inspect the same project with native Compose
Useaiv status and aiv logs above for routine checks. Use this section when native Compose configuration inspection or troubleshooting is needed.
Replace the placeholder with the actual complete directory displayed by the CLI, and set the project name to its original namespace. CLI bundles contain resolved private values and use --env-file /dev/null:
config --quiet validates without printing resolved private values. Explicitly select the original project name so ambient COMPOSE_PROJECT_NAME cannot change the target. Standalone parameterized templates must use their original actual .env, not /dev/null.
Retain Go lifecycle checks for installation and stopping
The currently reviewed mutation workflow usesaiv --target compose. The Go CLI invokes native Compose while retaining storage identity/ownership, the shared lock, isolated seekdb initialization, initialization-task reruns and exit/OOM checks before deletion. Successful native inspection does not establish bare docker compose up / down as an equivalent full workflow.
An existing parameterized Compose file can use the same Go lifecycle through --compose-file below. It is not automatically imported into default CLI vars; file/state identity comes from resolved YAML. This mode cannot be mixed with --namespace, --workdir, --vars-file, --var or blueprint options.
1. Prepare matching deployment material and images
You need Linux / macOS, a reachable Docker daemon, Docker Compose 2.27+, anaiv containing the current Compose target, and resources for the selected database plus five application services. Host Python is not required; bootstrap Python runs inside the applicable application images. Database defaults are not whole-platform capacity guarantees.
Use the complete selected-version Compose/bootstrap material and matching images; do not copy out a single YAML. Pin current source to the selected commit, updating an existing checkout instead of cloning again.
--compose-file and the original actual private .env. --compose-env-file defaults to .env when omitted; these examples always specify it. Install a matching aiv, then check:
--ready, organization-file support and shutdown fixes. Choose release artifacts or build them according to version matching. Here, main is a source entry point; it does not guarantee that rolling dev images have been updated. For GHCR permission errors, follow image access.
2. Select one database combination explicitly
The file selects the database mode. Changing
OB_BACKEND in .env does not select another file or migrate data. Use a separate deployment and migrate data when changing engines. External databases remain under their operators’ management; the platform still initializes its application databases.
3. Save separate private configuration
The following is for a new installation only. Reuse existing configuration directly. This command refuses to overwrite a file with the same name:
Role-based image keys take precedence over legacy
FE_IMAGE, BE_IMAGE, AGENTLENS_IMAGE, GATEWAY_IMAGE and SIGNOZ_IMAGE in the same file. Do not change only IMAGE_TAG while retaining old individual image references.
Use letters, digits, _ and - for database passwords. Single-quote other dotenv secrets containing $ to preserve literal values. Do not paste .env or the complete resolved Compose configuration into public logs.
External databases also need OB_HOST, OB_HOST_PORT, OB_USER and OB_USER_URL. The host must be reachable from the container network; 127.0.0.1 means the container itself. SQL and URL username forms must agree, for example CE’s root@aivision / root%40aivision, or seekdb’s root / root.
4. Install and inspect status
This example uses managed CE. For another combination, change every command’s--compose-file to the matching file above and keep the same private configuration:
http://127.0.0.1:5174. Register or sign in with your own platform account; internal database and SigNoz passwords do not sign in to AI Vision.
Then connect an Agent or send an SDK record, report a new Trace with valid credentials and read it back with authentication. Healthy status establishes only the corresponding probe conditions; it does not replace product readback.
Retry and update images
After fixing configuration, networking or capacity, repeat the complete originalaiv cast --target compose --compose-file ... --compose-env-file ... command. For parameterized templates, change images in the original .env; for resolved exports, regenerate from the original private vars and use --compose-env-file /dev/null. Another .env cannot override baked values. Updates stop and recreate single-instance applications; schedule a maintenance window and back up beforehand.
Keep the namespace, state and log directories, network, credentials, metastore, volume bindings, organization identity and fixed history start. After an update, compare actual image IDs and organization identity, then read one Trace from before and one from after the update. Recasting the same image or changing a tag without changing the image ID does not establish a cross-release upgrade.
Failed shutdown, a nonzero exit or OOM blocks subsequent removal and purge. Failed container IDs remain in the private .compose-stop-pending.json and are checked again on retry. Read logs, fix the cause, then restart the affected container and let it stop successfully. If manual removal is necessary, remove only the diagnosed failed container and retain its data. Do not delete stop records to bypass the check.
Native query maintenance
Matching versions default toBACKEND_QUERY_MODE=auto and DATA_BACKEND_PROJECTION_MAINTENANCE_ENABLED=true. Edit the existing role entries in the original private .env, then run aiv cast --target compose with the original --compose-file and --compose-env-file; role entries take precedence over legacy application aliases in the same file. raw preserves filters while bypassing projections; false durably suspends derived maintenance and serving. Returning to true does not clear shared suspension. Repair the cause, explicitly resume, and verify complete results. See Docker query maintenance and recovery for the boundaries and how to supply the key only to the recovery process.
Stop and retain data
destroy --purge removes named volumes only and retains the bind-mounted metastore, deployment identity and configuration; it is not a complete reset. A failed stop check prevents purge too. External databases are not deleted.
Before rebuilding from empty storage, arrange backups and explicitly handle this deployment’s metadata and identity. Do not combine an old retained metastore with an empty database and call it a fresh installation. Default Docker Go destroy --purge removes managed database volumes and namespace state, including the default metastore. Its retention differs from Compose. Compose rejects redeploy --purge and --purge-repos; do not transfer cleanup semantics from another target.
Common problems
aiv generate --target compose exports resolved private configuration and bootstrap material without a host Python control program. Operate such exports with the original absolute YAML path and --compose-env-file /dev/null; parameterized repository templates use the original actual .env. See the product Compose contract for complete details.