Install with Docker Compose

Make the secrets, fill in .env, start the stack, and add TLS, local models, monitoring or separate API and worker containers.

The Compose deployment runs Synaxis on one host. Every start brings up three containers: server (the all role), postgres and qdrant. Optional profiles add local embeddings, a TLS proxy and monitoring. You work in the Compose folder of your Synaxis version, which holds compose.yaml, .env.example, compose.scale.yaml and the secrets/, config/, proxy/ and monitoring/ folders.

Before you start

  • Put Docker's volumes on encrypted storage. The mirrors, pgdata and qdrant volumes hold your organization's proprietary code. Docker keeps named volumes under its data root (/var/lib/docker by default), so put that on an encrypted file system or an encrypted cloud disk before the first start.
  • Have your license file and the registry pull credentials that came with it.
  • Decide how TLS ends: the proxy profile (Caddy, with automatic certificates for a public host name), or your own reverse proxy in front of the server's port.

To install

  1. Sign in to BWTECH's registry (<registry>: its address comes with the pull credentials from your license):

    docker login <registry>
    
  2. Copy the environment file and edit it:

    cp .env.example .env
    
    Variable Set it to
    SYNAXIS_PUBLIC_URL Required. The https address people, CodeWrightAI and webhooks use
    BWTECH_DOCKER_REGISTRY_URL Required (unless SYNAXIS_IMAGE is set). The registry's address, <registry>, without https://
    SYNAXIS_VERSION The Synaxis version you install
    SYNAXIS_IMAGE Only to use another image reference, such as your own mirror of the image
    SYNAXIS_HTTP_PORT The host port of the server (8080 by default)
    SYNAXIS_HOSTNAME With the proxy profile: the host name Caddy gets a certificate for (its DNS must point to this host)
    SYNAXIS_EMBEDDING_URL, SYNAXIS_EMBEDDING_MODEL The embedding endpoint and model; the defaults use the local-models profile's Ollama
    SYNAXIS_EMBEDDING_KEY_SECRET For a hosted embedding endpoint: the name of the stored secret that holds its key
    SYNAXIS_SERVER_CPUS, SYNAXIS_SERVER_MEMORY, and the same for POSTGRES and QDRANT Resource limits
    The same for OLLAMA, PROXY, PROMETHEUS, POSTGRES_EXPORTER, GRAFANA and SEARXNG The profiles' resource limits (optional; the defaults are in .env.example)
    SYNAXIS_GRAFANA_PORT With the monitoring profile: Grafana's host port (3000 by default)
    SYNAXIS_DEV Leave false. Development mode allows http and plain secrets, and is never for production
  3. Make the secret files in secrets/. They are mounted as Docker secrets, never put in .env, and never committed:

    cd secrets
    openssl rand -base64 32 > postgres_password
    openssl rand -hex 32 > qdrant_api_key
    openssl rand -base64 24 > keyring_password
    openssl req -x509 -newkey rsa:3072 -nodes -keyout k.pem -out c.pem -days 3650 -subj "/CN=synaxis-keyring"
    openssl pkcs12 -export -inkey k.pem -in c.pem -out keyring.pfx -passout file:keyring_password
    rm k.pem c.pem
    openssl rand -base64 24 > grafana_admin_password   # only for the monitoring profile
    cd ..
    

    keyring.pfx is the key-encryption certificate that protects every stored secret (GitHub App keys, model keys, users' upstream tokens). Back it up with keyring_password, apart from the database backups.

  4. Copy your license file to config/license.synlic. The server installs it at start. Without one, Synaxis starts in setup mode and you install the license in the console instead. (License files are not issued while licensing moves to Kleis; until then Synaxis stays in setup mode. See The license.)

  5. Pull the images and start the stack with the profiles you want:

    docker compose --profile proxy --profile local-models pull
    docker compose --profile proxy --profile local-models up -d
    
  6. Check that every container is healthy, and that the server is ready (its schema is current and Qdrant answers):

    docker compose ps
    docker compose exec server dotnet BWTECH.CodeWrightAI.Synaxis.dll healthcheck --ready
    
  7. Continue with First start.

Tip: To keep the same profiles for every command, set COMPOSE_PROFILES=proxy,local-models in .env.

Note: If the server exits at start, read docker compose logs server. It lists every setting problem on a line starting Configuration:. See Start and sign-in problems.

Profiles

Profile Adds
local-models Ollama, and a one-time container that pulls SYNAXIS_EMBEDDING_MODEL (nomic-embed-text by default). For an NVIDIA GPU, uncomment the device reservation under ollama in compose.yaml
proxy Caddy, terminating TLS for SYNAXIS_HOSTNAME on ports 80 and 443 and passing requests (up to 25 MB, for webhooks) to the server
monitoring Prometheus, the PostgreSQL exporter and Grafana with the Synaxis dashboards and alert rules. See Grafana dashboards

All the third-party images are the official ones, pinned by digest and run unmodified: Synaxis configures them only through environment variables, secrets and read-only mounted files.

Your own reverse proxy

Without the proxy profile, point your reverse proxy or load balancer at the server's port (SYNAXIS_HTTP_PORT), terminate TLS for the public address there, and allow request bodies of at least 25 MB so webhooks pass. Of the server's ports only the public one is published; the management and internal ports stay inside the Compose networks, and PostgreSQL and Qdrant are on an internal network with no host ports. The monitoring profile also publishes Grafana's port.

Separate web, API and worker containers

compose.scale.yaml replaces the single server with a one-time migrate container, a web container, an api container and a worker container, so a database migration finishes before any starts. The proxy sends the API's paths to api and the rest to web, so this needs the proxy profile:

docker compose -f compose.yaml -f compose.scale.yaml --profile proxy up -d

Add web containers with --scale web=2; they hold nothing, so any number can run. Compose keeps one worker, because each worker needs its own mirrors volume. For more workers, use Kubernetes.

Settings beyond .env

Every Synaxis setting can be given as an environment variable starting SYNAXIS_, with __ between sections (SYNAXIS_Auth__RoleMappings__0__Group). Put them in a compose.override.yaml beside compose.yaml, which Compose reads automatically, so your changes survive an upgrade of compose.yaml. Secret values go in files under secrets/, given to the server as Docker secrets and named by a …File setting. First start shows the single sign-on settings this way.

The database connection

SYNAXIS_Database__ConnectionString names the PostgreSQL server (Host=postgres;Database=synaxis;Username=synaxis for the bundled one); the password comes from the postgres_password secret. Synaxis encrypts the connection when the server offers TLS and connects without it when the server does not, as the bundled PostgreSQL on the internal Compose network does not. To point Synaxis at a PostgreSQL elsewhere, state how strict to be with SSL Mode in the string:

SSL Mode Does
(not stated), Prefer TLS when the server offers it
Require TLS always, without checking the server's certificate
VerifyCA TLS, checking that a trusted authority issued the certificate
VerifyFull TLS, checking the authority and that the certificate names the host. Use this for a database on another host
Disable No TLS
services:
  server:
    environment:
      SYNAXIS_Database__ConnectionString: Host=db.example.com;Database=synaxis;Username=synaxis;SSL Mode=VerifyFull

Qdrant settings

Synaxis keeps strict mode on for its own Qdrant collections (those named after Vectors:CollectionPrefix, synaxis by default): Qdrant refuses a filter on a field without an index instead of scanning every point. Team notes are ranked inside the vector query. Each can be turned off on its own:

Setting Default Does
SYNAXIS_Qdrant__StrictMode true Strict mode on every Synaxis collection; false turns it off again
SYNAXIS_Qdrant__MaxQueryLimit 10000 The most points one query may ask for under strict mode
SYNAXIS_Qdrant__FormulaRanking true Ranks team notes inside the query; false ranks them in Synaxis, in the same order
SYNAXIS_Qdrant__Acorn false Asks Qdrant's filtered search (ACORN) for team notes. Measured on 500,000 notes it found more of the right notes for people who can read about a tenth of them, but was not faster; measure your own search times before keeping it on
SYNAXIS_Qdrant__Tiering false Keeps small tenants (repositories, a connection's work items, team notes) together in one shard and moves a large one to a shard of its own. Needs Qdrant in distributed mode; applies to the next index generation, while the current one keeps its layout
SYNAXIS_Qdrant__PromoteAtPoints 100000 With tiering on, the points a tenant reaches before it gets its own shard; 0 never moves one

To run the bundled Qdrant in distributed mode on one node, give its service QDRANT__CLUSTER__ENABLED: "true" and the command ./qdrant --uri http://qdrant:6335 in compose.override.yaml, then start a new generation under Indexing, Generations.

Trial settings

These settings belong to trials that are still being measured. Each is off by default and may be removed in a later release; leave them off unless BWTECH asks you to take part in a measurement.

Setting Default Does
SYNAXIS_Structure__Scip__Enabled false Runs SCIP indexers over each repository beside the built-in C# analysis, so references across repositories match by symbol rather than by name. The indexers build the code they index, so turn it on only for a worker that runs in a sandbox
SYNAXIS_Structure__Scip__Indexers__0__Name, …__Extensions__0, …__Command, …__Arguments__0, …__TimeoutMinutes none, 30 One indexer: a name, the file extensions it indexes (.cs), the program (scip-dotnet), its arguments, one of which names the index file to write as {output}, and how many minutes a run may take
SYNAXIS_Models__Reranker__Enabled false Reorders the best team notes and code results of each search with a reranking model you serve (for example bge-reranker-v2-m3). The notes keep their other ranking factors; if the model fails or is slow, the search answers in its usual order
SYNAXIS_Models__Reranker__Kind, …__BaseUrl, …__Model, …__ApiKeyRef, …__Candidates, …__TimeoutMs rerank, none, none, none, 20, 3000 The reranking API (rerank for vLLM, llama.cpp's server or Infinity; tei for text-embeddings-inference), its address, the model name, the stored secret holding its key, how many results it scores, and how long a search waits for it
SYNAXIS_Telemetry__GenAiSink__Endpoint, …__AuthorizationFile, …__AllSpans none, none, false Also sends the model calls' traces to a viewer such as Langfuse: its OTLP traces address, a secret file holding the Authorization header, and whether to send every trace instead

The trace viewer itself is not part of the deployment: BWTECH runs Langfuse beside Synaxis only to measure this trial, with a file that is not shipped. Point SYNAXIS_Telemetry__GenAiSink__Endpoint at a viewer you already run.

See also