Before deploying Alfresco CIC Connector with Docker Compose, you must create a Docker Compose file that defines the required component images and configuration settings.
To create a Docker Compose file:
- Open a text editor, such as Visual Studio Code.
- Create a folder, such as docker-compose.
- In the docker-compose folder, create the docker-compose.yml file.
-
Add the following content to the file.
services: alfresco: image: quay.io/alfresco/alfresco-content-repository:26.2.1 deploy: resources: limits: memory: 1700m depends_on: - postgres - activemq - transform-router environment: JAVA_TOOL_OPTIONS: " -Dencryption.keystore.type=JCEKS -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding -Dencryption.keyAlgorithm=DESede -Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore -Dmetadata-keystore.password=mp6yc0UD9e -Dmetadata-keystore.aliases=metadata -Dmetadata-keystore.metadata.password=oKIWzVdEdA -Dmetadata-keystore.metadata.algorithm=DESede " JAVA_OPTS: " -Ddb.driver=org.postgresql.Driver -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.url=jdbc:postgresql://postgres:5432/alfresco -Dindex.subsystem.name=elasticsearch -Delasticsearch.createIndexIfNotExists=true -Delasticsearch.host=elasticsearch -Delasticsearch.port=9200 -Dshare.host=localhost -Dshare.port=8080 -Dalfresco.host=localhost -Dalfresco.port=8080 -Dcsrf.filter.enabled=false -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos -Dmessaging.broker.url="failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true" -Dmessaging.broker.username=admin -Dmessaging.broker.password=admin -Ddeployment.method=DOCKER_COMPOSE -Dtransform.service.enabled=true -Dtransform.service.url=http://transform-router:8095 -Dsfs.url=http://shared-file-store:8099/ -DlocalTransform.core-aio.url=http://transform-core-aio:8090/ -Ddsync.service.uris=http://localhost:9090/alfresco -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 " healthcheck: test: curl --fail http://localhost:8080/alfresco || exit 1 start_period: 45s interval: 10s timeout: 3s retries: 30 digital-workspace: image: quay.io/alfresco/alfresco-digital-workspace:8.0.0 deploy: resources: limits: memory: 128m environment: BASE_PATH: ./ APP_BASE_SHARE_URL: http://localhost:8080/workspace/#/preview/s APP_CONFIG_PLUGIN_PROCESS_SERVICE: false APP_CONFIG_PROVIDER: ECM APP_CONFIG_AUTH_TYPE: BASIC APP_CONFIG_KNOWLEDGE_DISCOVERY_URL: https://[knowledge-discovery-url] live-ingester: image: quay.io/alfresco/alfresco-cic-connector-live-ingester:1.0.1 deploy: resources: limits: memory: 512m depends_on: activemq: condition: service_started transform-router: condition: service_healthy alfresco: condition: service_healthy environment: SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616 ALFRESCO_REPOSITORY_BASEURL: http://alfresco:8080/alfresco ALFRESCO_TRANSFORM_SHAREDFILESTORE_BASEURL: http://shared-file-store:8099 HYLANDEXPERIENCE_INSIGHT_INGESTION_BASEURL: https://ingestion.insight.dev.experience.hyland.com AUTH_PROVIDERS_HYLANDEXPERIENCE_CLIENTID: [add-your-client-id] AUTH_PROVIDERS_HYLANDEXPERIENCE_CLIENTSECRET: [add-your-client-secret] AUTH_PROVIDERS_HYLANDEXPERIENCE_ENVIRONMENTKEY: [add-your-environment-key] AUTH_PROVIDERS_HYLANDEXPERIENCE_TOKENURI: [add-nucleus-iam-origin]/idp/connect/token AUTH_PROVIDERS_HYLANDEXPERIENCE_GRANTTYPE: client_credentials AUTH_PROVIDERS_ALFRESCO_USERNAME: admin AUTH_PROVIDERS_ALFRESCO_PASSWORD: admin APPLICATION_SOURCEID: [add-your-system-id] bulk-ingester: image: quay.io/alfresco/alfresco-cic-connector-bulk-ingester:1.0.1 deploy: resources: limits: memory: 512m depends_on: live-indexing: condition: service_started alfresco: condition: service_healthy environment: SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616 SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/alfresco SPRING_DATASOURCE_USERNAME: alfresco SPRING_DATASOURCE_PASSWORD: alfresco nucleus-sync: image: quay.io/alfresco/alfresco-cic-connector-nucleus-sync:1.0.1 deploy: resources: limits: memory: 512m depends_on: alfresco: condition: service_healthy environment: SERVER_PORT: 8081 SYNC_ENABLED: true SYNC_CRON_EXPRESSION: "0 0 */2 * * ?" AUTH_ALFRESCO_TYPE: basic ALFRESCO_USER_NAME: admin ALFRESCO_PASSWORD: admin AUTH_HX_TYPE: oauth2 HX_CLIENT_ID: [add-your-client-id] HX_CLIENT_SECRET: [add-your-client-secret] HX_TOKEN_URI: [add-nucleus-iam-origin]/idp/connect/token ALFRESCO_BASE_URL: http://alfresco:8080/alfresco/api/-default-/public/alfresco/versions/1 NUCLEUS_IDP_BASE_URL: [add-nucleus-iam-origin] NUCLEUS_BASE_URL: https://auth.dev.app.hyland.com NUCLEUS_SYSTEM_ID: [add-your-system-id] - Save the docker-compose.yml file.
- Configure the required services. See Configuring the Docker Compose File.