Skip to main content
Version: GAI 26.3

Docker Compose Environment Variables

These are the environment variables that can be added to a .env file which should be created in the same directory as the docker-compose.yaml file to configure the installation. The default values are shown in the table below.

KeyTypeDescriptionDefault
GENERATOR_URLstringThe URL for the generator application. (Required)
GENERATOR_PORTstringThe port for the generator application.8443
KC_ADMIN_USERstringThe admin username for Keycloak. This must match what was set when installing Keycloak. (Required)
KC_ADMIN_PASSWORDstringThe admin password for Keycloak. This must match what was set when installing Keycloak. (Required)
REALM_INSTALLER_CLIENT_SECRETstringThe secret for the realm installer client for Keycloak. This must match during this initial installation. (Required)
KEYCLOAK_BASE_URLstringThe base URL for Keycloak. (Required)
KEYCLOAK_FRONTEND_URLstringThe realm for Keycloak.eggplant
POSTGRES_USERstringThe username for the PostgreSQL database.postgres
POSTGRES_PASSWORDstringThe password for the PostgreSQL database. (Required)eggplant
POSTGRES_DBstringThe name of the PostgreSQL database.eggplant_skill
NEO4J_USERNAMEstringThe username for the Neo4j database.neo4j
NEO4J_PASSWORDstringThe password for the Neo4j database.eggplant
MAX_FILE_UPLOAD_SIZEstringThe maximum file upload size in megabytes.10m
INITIAL_USER_USERNAMEstringThe username for the initial Keycloak user. (Required)
INITIAL_USER_PASSWORDstringThe password for the initial Keycloak user. (Required)
INITIAL_USER_GIVEN_NAMEstringThe given name for the initial Keycloak user. (Required)
INITIAL_USER_FAMILY_NAMEstringThe family name for the initial Keycloak user. (Required)
INITIAL_USER_EMAILstringThe email for the initial Keycloak user. (Required)
INITIAL_USER_IS_PASSWORD_TEMPORARYbooleanWhether the initial user's password is temporary.true
SMTP_HOSTstringThe SMTP server host.localhost
SMTP_PORTintegerThe SMTP server port.25
SMTP_FROMstringThe "from" address for SMTP emails.noreply@localhost
SMTP_AUTHbooleanWhether SMTP authentication is enabled.true
SMTP_USERNAMEstringThe username for SMTP authentication.
SMTP_PASSWORDstringThe password for SMTP authentication.
PREPOPULATE_BASE_CONTEXT_DOCSbooleanEnable automatic prepopulation of base context documents on startuptrue
CONTEXT_DOCS_MAX_WORKERSstringEnable Configure the number of workers for document processing8
CONTEXT_DOCS_EMBED_CONCURRENCYstringConfigure embedding concurrency1
CONTEXT_DOCS_EMBED_BATCH_SIZEstringConfigure the embedding batch size128
Important

Set POSTGRES_PASSWORD in your .env file so it is passed to both the database and the application containers. If you omit it, Docker Compose falls back to the default (eggplant), which is not recommended for production deployments.

ConfigurationHardwareRecommended Value
CONTEXT_DOCS_EMBED_CONCURRENCY6–8 CPU cores3–4
CONTEXT_DOCS_EMBED_CONCURRENCY12+ CPU cores6+
CONTEXT_DOCS_EMBED_CONCURRENCY8 GB GPU VRAM5
CONTEXT_DOCS_EMBED_CONCURRENCY16 GB GPU VRAM10
CONTEXT_DOCS_EMBED_BATCH_SIZE16 GB RAM64–128
CONTEXT_DOCS_EMBED_BATCH_SIZE32 GB RAM128–256
CONTEXT_DOCS_EMBED_BATCH_SIZE64 GB+ RAM256–512
CONTEXT_DOCS_MAX_WORKERS8 CPU cores6–8
CONTEXT_DOCS_MAX_WORKERS12 CPU cores8–12
CONTEXT_DOCS_MAX_WORKERS16+ CPU cores12–16