cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with APS in the same docker compose with ACS

faobek
Confirmed Champ
Confirmed Champ

Hi,

I have tried to have ACS and APS ine the same docker compose file,  for the ACS i have no problem but i have no result with APS, I used http://serverip:8080/activiti-app without respond.

I spent hours to figure out the solution.

Best Regards.

version: "2"

services:
alfresco:
image: quay.io/alfresco/alfresco-content-repository:7.2.0
mem_limit: 1900m
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=jdbcSmiley Tongueostgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=secret
-Dsolr.sharedSecret=secret
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=127.0.0.1
-Dshare.port=8080
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
-Dmessaging.broker.url=\"failoverSmiley Sadnio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-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/
-Dcsrf.filter.enabled=false
-Ddsync.service.uris=http://localhost:9090/alfresco
-DtrialUid=id148458
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
"

transform-router:
mem_limit: 512m
image: quay.io/alfresco/alfresco-transform-router:1.5.2
environment:
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
ACTIVEMQ_URL: "nio://activemq:61616"
CORE_AIO_URL: "http://transform-core-aio:8090"
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
ports:
- "8095:8095"
links:
- activemq

transform-core-aio:
image: alfresco/alfresco-transform-core-aio:2.5.7
mem_limit: 1536m
environment:
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
ACTIVEMQ_URL: "nio://activemq:61616"
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
ports:
- "8090:8090"
links:
- activemq

shared-file-store:
image: quay.io/alfresco/alfresco-shared-file-store:0.16.1
mem_limit: 512m
environment:
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
scheduler.content.age.millis: 86400000
scheduler.cleanup.interval: 86400000
ports:
- "8099:8099"
volumes:
- shared-file-store-volume:/tmp/Alfresco/sfs

share:
image: quay.io/alfresco/alfresco-share:7.2.0
mem_limit: 1g
environment:
REPO_HOST: "alfresco"
REPO_PORT: "8080"
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 -Dalfresco.host=localhost -Dalfresco.port=8080 -Dalfresco.context=alfresco -Dalfresco.protocol=http "

postgres:
image: postgres:13.3
mem_limit: 512m
environment:
- POSTGRES_PASSWORD=alfresco
- POSTGRES_USER=alfresco
- POSTGRES_DB=alfresco
command: postgres -c max_connections=300 -c log_min_messages=LOG
ports:
- "5432:5432"

solr6:
image: alfresco/alfresco-search-services:2.0.3
mem_limit: 2g
environment:
# Solr needs to know how to register itself with Alfresco
SOLR_ALFRESCO_HOST: "alfresco"
SOLR_ALFRESCO_PORT: "8080"
# Alfresco needs to know how to call solr
SOLR_SOLR_HOST: "solr6"
SOLR_SOLR_PORT: "8983"
# Create the default alfresco and archive cores
SOLR_CREATE_ALFRESCO_DEFAULTS: "alfresco,archive"
# HTTPS or SECRET
ALFRESCO_SECURE_COMMS: "secret"
# SHARED SECRET VALUE
JAVA_TOOL_OPTIONS: " -Dalfresco.secureComms.secret=secret "
ports:
- "8083:8983" # Browser port
process:
image: alfresco/process-services:1.11.4.3
environment:
ACTIVITI_DATASOURCE_USERNAME: alfresco
ACTIVITI_DATASOURCE_PASSWORD: alfresco
ACTIVITI_DATASOURCE_DRIVER: org.postgresql.Driver
ACTIVITI_HIBERNATE_DIALECT: org.hibernate.dialect.PostgreSQLDialect
ACTIVITI_DATASOURCE_URL: 'jdbcSmiley Tongueostgresql://postgres-activiti:5432/activiti?characterEncoding=UTF-8'
ACTIVITI_CSRF_DISABLED: 'true'
ACTIVITI_CORS_ENABLED: 'true'
ports:
- "8091:8090"
links:
- postgres-activiti
depends_on:
- postgres
process-admin:
image: alfresco/process-services-admin:1.11.4.3
depends_on:
- process
- postgres-admin
environment:
ACTIVITI_ADMIN_DATASOURCE_USERNAME: alfresco
ACTIVITI_ADMIN_DATASOURCE_PASSWORD: alfresco
ACTIVITI_ADMIN_DATASOURCE_DRIVER: org.postgresql.Driver
ACTIVITI_ADMIN_HIBERNATE_DIALECT: org.hibernate.dialect.PostgreSQLDialect
ACTIVITI_ADMIN_DATASOURCE_URL: 'jdbcSmiley Tongueostgresql://postgres-admin:5432/activiti-admin?characterEncoding=UTF-8'
ACTIVITI_ADMIN_REST_APP_HOST: http://process
ACTIVITI_ADMIN_REST_APP_POR: 8080
# ACTIVITI_ADMIN_REST_APP_USERNAME: admin@app.activiti.com
# ACTIVITI_ADMIN_REST_APP_PASSWORD: admin
# ACTIVITI_ADMIN_CSRF_DISABLED: 'true'
# ACTIVITI_ADMIN_CORS_ENABLED: 'true'
volumes:
- "/./activiti-lic/:/root/.activiti/enterprise-license/:ro"
ports:
- "8092:8090"
links:
- postgres-admin
- process

postgres-activiti:
image: postgres:13.3
environment:
POSTGRES_DB: activiti
POSTGRES_USER: alfresco
POSTGRES_PASSWORD: alfresco

postgres-admin:
image: postgres:13.3
environment:
POSTGRES_DB: activiti-admin
POSTGRES_USER: alfresco
POSTGRES_PASSWORD: alfresco
activemq:
image: alfresco/alfresco-activemq:5.16.4-jre11-centos7
mem_limit: 1g
ports:
- "8161:8161" # Web Console
- "5672:5672" # AMQP
- "61616:61616" # OpenWire
- "61613:61613" # STOMP

digital-workspace:
image: quay.io/alfresco/alfresco-digital-workspace:2.7.0
mem_limit: 128m
environment:
APP_CONFIG_AUTH_TYPE: "BASIC"
BASE_PATH: ./
APP_BASE_SHARE_URL: "http://localhost:8080/workspace/#/preview/s"

control-center:
image: quay.io/alfresco/alfresco-admin-app:7.2.0
mem_limit: 128m
environment:
APP_CONFIG_PROVIDER: "ECM"
APP_CONFIG_AUTH_TYPE: "BASIC"
BASE_PATH: ./

proxy:
image: alfresco/alfresco-acs-nginx:3.3.0
mem_limit: 128m
depends_on:
- alfresco
- digital-workspace
- control-center
- process
ports:
- "8080:8080"
links:
- digital-workspace
- alfresco
- share
- control-center
- process
- process-admin

sync-service:
image: quay.io/alfresco/service-sync:3.6.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Dsql.db.driver=org.postgresql.Driver -Dsql.db.url=jdbcSmiley Tongueostgresql://postgres:5432/alfresco -Dsql.db.username=alfresco -Dsql.db.password=alfresco -Dmessaging.broker.host=activemq -Drepo.hostname=alfresco -Drepo.port=8080 -Ddw.server.applicationConnectors[0].type=http -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 "
ports:
- "9090:9090"

volumes:
shared-file-store-volume:
driver_opts:
type: tmpfs
device: tmpfs

1 ACCEPTED ANSWER

Hi,

Thanks, I'll correct this and answer.

Regards,

View answer in original post

6 REPLIES 6

scampoy1
Confirmed Champ
Confirmed Champ

Hi,

Did you try with http://localhost:8091/activiti-app? If you access to http://localhost:8080/activiti-app the proxy service is listening your request. However, the nginx docker image does not support the APS.

Hi,

Thanks for prompt reply.

I already try both without results.

"the nginx docker image does not support the APS".where can I find further infomation about this.

Regards,

Hi

As you can see on the github page for Alfresco nginx proxy, this service only proxy requests for:

  • Repository
  • Share
  • Alfresco Content App
  • Alfresco Digital Workspace
  • Control Center
  • Sync Service

The requests for the APS context (activiti-app) aren't answered by nginx.

I hope this answer will be usefull for you.

Hi,

Thanks for this helpfull link.

In other way, is there a solution for having ACS and APS in same yml file?

Best regards,

Yes, sure. In fact, your Dockerfile is 90% right.

Remove process and process-admin references fron nginx Service. 

When you start this Alfresco using compose, you should access to APS throught the port 8091, http://localhost:8091/activiti-app

Hi,

Thanks, I'll correct this and answer.

Regards,