mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
175 lines
5.7 KiB
YAML
Executable File
175 lines
5.7 KiB
YAML
Executable File
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
|
|
version: "2"
|
|
|
|
services:
|
|
alfresco:
|
|
build:
|
|
context: ./alfresco
|
|
args:
|
|
ALFRESCO_TAG: ${ALFRESCO_TAG}
|
|
SOLR_COMMS: none
|
|
COMPRESS_CONTENT: "false"
|
|
mem_limit: 1800m
|
|
environment:
|
|
JAVA_TOOL_OPTIONS: "${JAVA_TOOL_OPTIONS}"
|
|
JAVA_OPTS: "
|
|
-Ddb.driver=org.postgresql.Driver
|
|
-Ddb.username=alfresco
|
|
-Ddb.password=alfresco
|
|
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
|
|
-Dsolr.host=solr6
|
|
-Dsolr.port.ssl=8983
|
|
-Dsolr.secureComms=none
|
|
-Dsolr.baseUrl=/solr
|
|
-Dindex.subsystem.name=solr6
|
|
-Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
|
|
-Dmessaging.broker.url=\"failover:(nio://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/
|
|
-Dalfresco-pdf-renderer.url=http://transform-core-aio:8090/
|
|
-Djodconverter.url=http://transform-core-aio:8090/
|
|
-Dimg.url=http://transform-core-aio:8090/
|
|
-Dtika.url=http://transform-core-aio:8090/
|
|
-Dtransform.misc.url=http://transform-core-aio:8090/
|
|
-Dcsrf.filter.enabled=false
|
|
-Dalfresco.restApi.basicAuthScheme=true
|
|
-Xms1500m -Xmx1500m
|
|
"
|
|
|
|
solr6:
|
|
build:
|
|
context: ./search
|
|
args:
|
|
SEARCH_TAG: ${SEARCH_TAG}
|
|
SOLR_HOSTNAME: solr6
|
|
ALFRESCO_HOSTNAME: alfresco
|
|
ALFRESCO_COMMS: none
|
|
COMPRESS_CONTENT: "false"
|
|
SEARCH_LOG_LEVEL: WARN
|
|
mem_limit: 1200m
|
|
environment:
|
|
#Solr needs to know how to register itself with Alfresco
|
|
SOLR_ALFRESCO_HOST: "alfresco"
|
|
SOLR_ALFRESCO_PORT: "8080"
|
|
ALFRESCO_SECURE_COMMS: none
|
|
#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"
|
|
SOLR_JAVA_MEM: "-Xms1g -Xmx1g"
|
|
ports:
|
|
- 8083:8983
|
|
|
|
|
|
|
|
|
|
|
|
transform-router:
|
|
mem_limit: 512m
|
|
image: quay.io/alfresco/alfresco-transform-router:${TRANSFORM_ROUTER_TAG}
|
|
environment:
|
|
JAVA_OPTS: " -Xms256m -Xmx512m"
|
|
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:${TRANSFORM_CORE_AIO_TAG}
|
|
mem_limit: 1536m
|
|
environment:
|
|
JAVA_OPTS: " -Xms256m -Xmx1536m"
|
|
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: alfresco/alfresco-shared-file-store:${SHARED_FILE_STORE_TAG}
|
|
mem_limit: 512m
|
|
environment:
|
|
JAVA_OPTS: " -Xms256m -Xmx512m"
|
|
scheduler.content.age.millis: 86400000
|
|
scheduler.cleanup.interval: 86400000
|
|
ports:
|
|
- 8099:8099
|
|
volumes:
|
|
- shared-file-store-volume:/tmp/Alfresco/sfs
|
|
|
|
share:
|
|
build:
|
|
context: ./share
|
|
args:
|
|
SHARE_TAG: ${SHARE_TAG}
|
|
mem_limit: 1g
|
|
environment:
|
|
REPO_HOST: "alfresco"
|
|
REPO_PORT: "8080"
|
|
JAVA_OPTS: "
|
|
-Xms500m
|
|
-Xmx500m
|
|
-Dalfresco.host=localhost
|
|
-Dalfresco.port=8080
|
|
-Dalfresco.context=alfresco
|
|
-Dalfresco.protocol=http
|
|
"
|
|
|
|
postgres:
|
|
image: postgres:${POSTGRES_TAG}
|
|
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
|
|
|
|
activemq:
|
|
image: alfresco/alfresco-activemq:${ACTIVE_MQ_TAG}
|
|
mem_limit: 1g
|
|
ports:
|
|
- 8161:8161 # Web Console
|
|
- 5672:5672 # AMQP
|
|
- 61616:61616 # OpenWire
|
|
- 61613:61613 # STOMP
|
|
|
|
content-app:
|
|
image: quay.io/alfresco/alfresco-digital-workspace:${DIGITAL_WORKSPACE_TAG}
|
|
mem_limit: 128m
|
|
environment:
|
|
BASEPATH: ./
|
|
|
|
# HTTP proxy to provide HTTP Default port access to services
|
|
# SOLR API and SOLR Web Console are protected to avoid unauthenticated access
|
|
proxy:
|
|
image: nginx:stable-alpine
|
|
mem_limit: 128m
|
|
depends_on:
|
|
- alfresco
|
|
volumes:
|
|
- ./config/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./config/nginx.htpasswd:/etc/nginx/conf.d/nginx.htpasswd
|
|
ports:
|
|
- 8080:8080
|
|
links:
|
|
- alfresco
|
|
- share
|
|
- solr6
|
|
- content-app
|
|
|
|
volumes:
|
|
shared-file-store-volume:
|
|
driver_opts:
|
|
type: tmpfs
|
|
device: tmpfs
|