Skip to main content
Version: GAI 1.2

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
IINITIAL_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.
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.