Skip to content

Docker and Docker Compose

This guide is for teams who prefer to run LyftData in containers instead of installing binaries onto hosts. It covers:

  • A single-container server for evaluation (built-in worker only).
  • A Docker Compose stack with external workers (with a license that includes them).
  • The master-key settings required for headless containers (no desktop keyring/DBus).
  • Docker Engine + Docker Compose v2.
  • A persistent directory on the host for server data (and worker data if using external workers).

Headless containers generally cannot use a desktop keyring session. Use a durable, scoped secret-injection path for each key family and persist encrypted state outside the image. Before changing an existing container’s environment, confirm it is a fresh deployment with no valuable encrypted state; otherwise restore the expected original key first. A replacement key cannot decrypt the existing state.

The server variables and Credential Manager key families are separate; Worker settings are a third family. See Secret storage and recovery for the supported inputs, runtime-user file requirements, and container limitations.

Check the selected release for available Linux server images and supported architectures (amd64 or arm64). The image contains the lyftdata executable, runs as UID/GID 65532:65532 (non-root) and keeps its state in the /data volume.

  • Downloads (no registry needed): download lyftdata-server-docker-linux-amd64.tar.xz or lyftdata-server-docker-linux-arm64.tar.xz and its .sha256 from the Downloads page, then load it as shown in Using the downloadable Docker image. docker load prints two references for the same image ID, ghcr.io/lyftdata/dist:<tag>-<arch> and lyftdata-server:<tag>-<arch>; either works.
  • Container registry: the container-release.json file in the same version folder names the registry reference (ghcr.io/lyftdata/dist:<tag>, for example v3.0.0-eap.3), the image digest, and a digest for each platform. The registry package is public, so no login is needed. Pin the exact version or digest from that file.

The container package is LyftData on GitHub Container Registry. LyftData 3.0.0-eap.3 publishes one image for Linux amd64 and arm64; Docker pulls the variant that matches your machine.

The package is public. Pull it without logging in:

Terminal window
docker pull ghcr.io/lyftdata/dist:v3.0.0-eap.3

For a digest-pinned deployment, use the top-level digest value from container-release.json in the same release folder (it already begins with sha256:), as ghcr.io/lyftdata/dist@<digest>. That digest covers both platforms; each per-platform registry_digest pins a single architecture.

The :eap tag is a moving channel alias: the EAP channel moves only :eap and does not update :beta or :latest. Use the exact version or the digest, not :eap. For the matching first-admin setup, private runtime-key configuration, localhost-only listener and persistent /data volume, see Option A below. The default image command keeps the first-admin guard: an empty installation needs the first-admin setup (see Option A below) before ordinary startup. A named data volume is the simplest starting point.

This page documents only the 3.0.0-eap.3 image. Use only the image files listed for the version you choose.

Option A: Single-container server (evaluation)

Section titled “Option A: Single-container server (evaluation)”

This runs the server with the built-in worker. It is the fastest way to evaluate LyftData in Docker.

You need Docker on an amd64 or arm64 Linux machine. The server runs as UID/GID 65532:65532, listens on container port 3000, and stores its state in /data.

First, create a private runtime configuration with three independently generated encryption keys. Keep this file alongside your backups: reusing the data volume requires the same keys. The command creates lyftdata-private/runtime.env with mode 0600 inside a private 0700 directory and refuses to overwrite an existing file. It writes a placeholder for LYFTDATA_ADMIN_INIT_PASSWORD; replace that placeholder in the generated file using a text editor before starting the container.

Terminal window
mkdir -m 700 lyftdata-private
python3 - <<'PY'
import base64
import os
import secrets
os.umask(0o077)
with open("lyftdata-private/runtime.env", "x") as configuration:
configuration.write("LYFTDATA_LICENSE_EULA_ACCEPT=yes\n")
configuration.write("LYFTDATA_ADMIN_INIT_PASSWORD=<choose-a-strong-password>\n")
for purpose in ("SETTINGS", "VARIABLES", "CREDENTIAL_MANAGER"):
configuration.write(f"LYFTDATA_{purpose}_MASTER_KEY_SOURCE=env\n")
key = base64.b64encode(secrets.token_bytes(32)).decode()
configuration.write(f"LYFTDATA_{purpose}_MASTER_KEY={key}\n")
PY

The configuration records EULA acceptance. Review the applicable terms before starting LyftData. These are runtime keys supplied to your installation; no keys or commercial license are included in the image. Keep the configuration private and outside source control. Docker administrators can inspect container configuration.

Set LYFTDATA_ADMIN_INIT_PASSWORD in lyftdata-private/runtime.env for the first start. Using a text editor, replace <choose-a-strong-password> in that file with your own password: at least 12 bytes long (12 plain ASCII characters; other characters count by their UTF-8 bytes), including an uppercase letter, a lowercase letter and an ASCII digit (0-9). Keep the password private and out of shell commands and shell history. An invalid password prevents startup.

docker inspect still shows env-file values to anyone with Docker access, which is root-equivalent.

Start the server on your own computer. This command uses the image’s default server command and creates the first administrator before the listener starts:

Terminal window
docker run -d --name lyftdata \
--publish 127.0.0.1:3000:3000 \
--mount type=volume,source=lyftdata-data,target=/data \
--env-file lyftdata-private/runtime.env \
ghcr.io/lyftdata/dist:v3.0.0-eap.3

Open http://localhost:3000/ui/ and sign in as admin with the password you supplied in LYFTDATA_ADMIN_INIT_PASSWORD. No setup link is needed. The variable initializes a fresh installation; it does not change an existing administrator’s password.

After the first sign-in, change the password in the UI, delete the LYFTDATA_ADMIN_INIT_PASSWORD line from lyftdata-private/runtime.env, and recreate the container. Stop it with docker stop --timeout 60 lyftdata, remove it with docker rm lyftdata, then rerun the same docker run command above, keeping the data volume and the remaining runtime configuration. Once an administrator exists, initialization is skipped, so removing the variable does not change the stored password. From 3.0.0-eap.3 the Server takes up to 50 seconds to drain at shutdown, so give docker stop at least 55 seconds; a shorter timeout can kill it before its Jobs finish stopping.

To license this server with a license file (for example from an evaluation or Community+, or an offline license issued by LyftData), load it in the Server UI: go to Configure → Settings → License management, select Have a license key? Activate it (on a server that already has a license, use Replace license instead), then select Advanced: Full License Key. A license file is verified online; see A license file is verified online.

--allow-remote-bootstrap is not recommended for normal container deployments. Without an administrator, the server refuses a non-loopback listener by default; supplying the first-admin password keeps that guard enabled.

Keep the complete data volume on a supported persistent local filesystem, such as ext4 or XFS. Always mount /data; the container’s overlay filesystem is unsuitable for automatic file-backed secret storage. Preserve the volume and the private runtime configuration together. See Secret storage prerequisites.

For a downloaded image, replace ghcr.io/lyftdata/dist:v3.0.0-eap.3 in the command above with a reference printed by docker load. For the examples below, <your-image> means that selected image reference.

Using the downloadable Docker image (no registry)

Section titled “Using the downloadable Docker image (no registry)”

If you are using the downloads portal instead of a container registry, download the platform-matching server image archive and load it locally.

  • Look for files like lyftdata-server-docker-linux-amd64.tar.xz or lyftdata-server-docker-linux-arm64.tar.xz (plus the matching .sha256).
  • Load the image, then run it with the same flags and environment variables shown above.

Example:

Terminal window
sha256sum -c lyftdata-server-docker-linux-amd64.tar.xz.sha256
xz -dc lyftdata-server-docker-linux-amd64.tar.xz | docker load
docker images ghcr.io/lyftdata/dist

docker load prints two references for the same image ID: ghcr.io/lyftdata/dist:<tag>-<arch> and lyftdata-server:<tag>-<arch>. Either works in docker run or Compose.

Building your own Docker image (Dockerfile)

Section titled “Building your own Docker image (Dockerfile)”

If you want to customize the base image (for example: add custom CA certificates, ODBC drivers, or other runtime dependencies), you can package LyftData into your own image. Copy lyftdata from the Product archive into the build directory; it includes the built-in Worker.

Notes:

  • You can use the same image for server and workers. The combined lyftdata binary supports both lyftdata run server and lyftdata run worker.
  • GNU/Linux builds require zlib at runtime (zlib1g on Debian/Ubuntu).
  • Keep secrets (license JWTs and master keys) out of the image; pass them via environment variables at runtime.

Example Dockerfile:

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
zlib1g \
&& rm -rf /var/lib/apt/lists/*
COPY lyftdata /usr/local/bin/
RUN chmod 0755 /usr/local/bin/lyftdata
ENV LYFTDATA_LICENSE_EULA_ACCEPT=yes
EXPOSE 3000
ENTRYPOINT ["/usr/local/bin/lyftdata"]

Build it from a directory that contains both executables (make sure they come from the same version and match the image architecture, for example linux/amd64 vs linux/arm64):

Terminal window
docker build -t lyftdata:local .

Option B: Docker Compose (server + external workers)

Section titled “Option B: Docker Compose (server + external workers)”

Use this only with a license that includes external workers.

How you license the server depends on what you received:

  • A plan bought in the LyftData Portal comes as a Portal activation token (it starts with pag_). Activate it once in the Server UI: open http://localhost:3000/, go to Configure → Settings → License management, select Have a license key? Activate it (on a server that already has a license, use Replace license instead), then select Subscription (Recommended) and paste the token. Do not put the token in LYFTDATA_LICENSE. A Portal plan is verified online the same way; see A license file is verified online.
  • A license file (for example from an Enterprise evaluation, or an offline license issued by LyftData) can be read by LYFTDATA_LICENSE from a Docker secret, as below, or loaded in the Server UI under Advanced: Full License Key.

To use a license file, save it as lyftdata-private/lyftdata-license.jwt. Compose mounts the secret file with its host owner and mode, so make it readable only by the server’s UID: chmod 0400 lyftdata-private/lyftdata-license.jwt && sudo chown 65532:65532 lyftdata-private/lyftdata-license.jwt.

Each master key is 32 random bytes, encoded as base64 (as the Option A generator writes them) or as 64 hexadecimal characters.

Create each bind-mounted directory and give it to UID/GID 65532 before the first start (mkdir -p lyft_data/server lyft_data/worker-alpha lyft_data/worker-beta && sudo chown -R 65532:65532 lyft_data), or use named volumes.

services:
lyft-server:
image: <your-image>
restart: unless-stopped
stop_grace_period: 60s
command:
- run
- server
- --disable-tls
- --bind-address
- 0.0.0.0:3000
- --variables-master-key-source
- env
ports:
- "127.0.0.1:3000:3000"
environment:
LYFTDATA_LICENSE_EULA_ACCEPT: "yes"
LYFTDATA_ADMIN_INIT_PASSWORD: "<choose-a-strong-password>"
# Only if you have a license file (for example from an Enterprise evaluation, or an offline
# license issued by LyftData): bootstrap it from the secret.
# A plan bought in the LyftData Portal is activated in the Server UI instead; remove this
# line and both `secrets` entries.
LYFTDATA_LICENSE: "@/run/secrets/lyftdata_license"
LYFTDATA_STAGING_DIR: "/data"
LYFTDATA_AUTO_ENROLLMENT_KEY: "ChangeThisEnrollmentKey!"
LYFTDATA_VARIABLES_MASTER_KEY_SOURCE: "env"
LYFTDATA_VARIABLES_MASTER_KEY: "<base64-32-byte-key>"
LYFTDATA_CREDENTIAL_MANAGER_MASTER_KEY_SOURCE: "env"
LYFTDATA_CREDENTIAL_MANAGER_MASTER_KEY: "<base64-32-byte-key>"
# Required in headless containers because the built-in worker runs inside the server
LYFTDATA_SETTINGS_MASTER_KEY_SOURCE: "env"
LYFTDATA_SETTINGS_MASTER_KEY: "<base64-32-byte-key>"
secrets:
- lyftdata_license
volumes:
- ./lyft_data/server:/data
worker-alpha:
image: <your-image>
restart: unless-stopped
command:
- run
- worker
- --url
- http://lyft-server:3000
- --worker-name
- worker-alpha
- --worker-jobs-dir
- /data
depends_on:
- lyft-server
environment:
LYFTDATA_LICENSE_EULA_ACCEPT: "yes"
LYFTDATA_AUTO_ENROLLMENT_KEY: "ChangeThisEnrollmentKey!"
LYFTDATA_SETTINGS_MASTER_KEY_SOURCE: "env"
LYFTDATA_SETTINGS_MASTER_KEY: "<base64-32-byte-key>"
volumes:
- ./lyft_data/worker-alpha:/data
worker-beta:
image: <your-image>
restart: unless-stopped
command:
- run
- worker
- --url
- http://lyft-server:3000
- --worker-name
- worker-beta
- --worker-jobs-dir
- /data
depends_on:
- lyft-server
environment:
LYFTDATA_LICENSE_EULA_ACCEPT: "yes"
LYFTDATA_AUTO_ENROLLMENT_KEY: "ChangeThisEnrollmentKey!"
LYFTDATA_SETTINGS_MASTER_KEY_SOURCE: "env"
LYFTDATA_SETTINGS_MASTER_KEY: "<base64-32-byte-key>"
volumes:
- ./lyft_data/worker-beta:/data
secrets:
lyftdata_license:
file: ./lyftdata-private/lyftdata-license.jwt

Bring it up. With a license file in LYFTDATA_LICENSE, start the whole stack at once:

Terminal window
docker compose up -d
docker compose logs -f lyft-server

With a plan bought in the LyftData Portal, the server must be licensed before the external workers enroll, or it refuses them. Start the server alone, activate the plan, then start the workers:

Terminal window
docker compose up -d lyft-server
# Open http://localhost:3000/ → Configure → Settings → License management →
# Have a license key? Activate it, select Subscription (Recommended)
# and paste your Portal activation token.
docker compose up -d worker-alpha worker-beta
docker compose logs -f lyft-server

For container stacks, it is common to run the server with --disable-tls and terminate TLS at a reverse proxy. To keep TLS enabled on the server instead, remove --disable-tls from the server’s command and change each worker’s --url to https://lyft-server:3000; the UI is then at https://localhost:3000/ui/. With the server’s self-signed certificate, workers must connect using --tls-insecure (or LYFTDATA_TLS_INSECURE=true) during evaluation.