You are here

Configuring environment variables for Alfresco Process Services

It is possible to override the default variables to configure the Docker container.

There are three options for specifying your own variables in a Docker installation:

  • Mount your own activiti-app.properties and/or activiti-identity-service.properties file in /usr/local/tomcat/lib using Docker volumes
  • Specifying environment variables for each properties file that points to an accessible location such as an S3 bucket:
    • The EXTERNAL_ACTIVITI_APP_PROPERTIES_FILE environment variable for an activiti-app.properties file
    • The EXTERNAL_ACTIVITI_IDENTITY_SERVICE_PROPERTIES_FILE environment variable for an activiti-identity-service.properties file
      Note: If you choose this option, the files will be automatically downloaded into the contextual folder.
  • Configure the environment variables in the Docker container by overriding the default values as per the following tables

For variables that correspond to the activiti-app.properties file:

Variable name Default Corresponding value in activiti-app.properties file
ACTIVITI_LICENSE_MULTI_TENANT false license.multi-tenant
ACTIVITI_DATASOURCE_DRIVER org.h2.Driver datasource.driver
ACTIVITI_DATASOURCE_URL jdbc:h2:mem:db1;DB_CLOSE_DELAY=1000 datasource.url
ACTIVITI_DATASOURCE_USERNAME alfresco datasource.username
ACTIVITI_DATASOURCE_PASSWORD alfresco datasource.password
ACTIVITI_HIBERNATE_DIALECT org.hibernate.dialect.H2Dialect hibernate.dialect
ACTIVITI_ADMIN_EMAIL admin@app.activiti.com admin.email
ACTIVITI_ADMIN_PASSWORD_HASH 25a463679c56c474f20d8f592e899ef4cb3f79177c19e3782ed827

b5c0135c466256f1e7b60e576e

admin.passwordHash
ACTIVITI_CORS_ALLOWED_ORIGINS * cors.enabled
ACTIVITI_CORS_ALLOWED_METHODS GET,POST,HEAD,OPTIONS,PUT,DELETE cors.allowed.methods
ACTIVITI_CORS_ALLOWED_HEADERS Authorization,Content-Type,Cache-Control,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,X-CSRF-Token cors.allowed.headers
ACTIVITI_CORS_ENABLED true cors.enabled
ACTIVITI_CSRF_DISABLED true security.csrf.disabled
ACTIVITI_ES_SERVER_TYPE embedded elastic-search.server.type
ACTIVITI_ES_DISCOVERY_TYPE unicast elastic-search.discovery.type
ACTIVITI_ES_DISCOVERY_HOSTS localhost:9300 elastic-search.discovery.hosts
ACTIVITI_ES_CLUSTER_NAME elasticsearch elastic-search.data.path

For variables that correspond to the activiti-identity-service.properties file:

Variable name Default Corresponding value in activiti-identity-service.properties file
IDENTITY_SERVICE_ENABLED true keycloak.enabled
IDENTITY_SERVICE_REALM alfresco keycloak.realm
IDENTITY_SERVICE_AUTH http://localhost:8180/auth keycloak.auth-server-url
IDENTITY_SERVICE_SSL_REQUIRED none keycloak.ssl-required
IDENTITY_SERVICE_RESOURCE alfresco keycloak.resource
IDENTITY_SERVICE_PRINCIPAL_ATTRIBUTE email keycloak.principal-attribute
IDENTITY_SERVICE_ALWAYS_REFRESH_TOKEN true keycloak.always-refresh-token
IDENTITY_SERVICE_AUTODETECT_BEARER_ONLY true keycloak.autodetect-bearer-only
IDENTITY_SERVICE_TOKEN_STORE cookie keycloak.token-store
IDENTITY_SERVICE_ENABLE_BASIC_AUTH true keycloak.enable-basic-auth
IDENTITY_SERVICE_PUBLIC_CLIENT true keycloak.public-client
IDENTITY_CREDENTIALS_SECRET NULL keycloak.credentials.secret

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.