Skip to content

Commit

Permalink
OPSEXP-2275: Set search enterprise as the default search engine in co…
Browse files Browse the repository at this point in the history
…mpose (#1036)
  • Loading branch information
alxgomz authored Jan 23, 2024
1 parent 718815a commit ca46ddf
Show file tree
Hide file tree
Showing 7 changed files with 254 additions and 239 deletions.
94 changes: 63 additions & 31 deletions docker-compose/23.N-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,35 @@ services:
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=secret
-Dsolr.sharedSecret=secret
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dindex.subsystem.name=elasticsearch
-Delasticsearch.createIndexIfNotExists=true
-Delasticsearch.host=elasticsearch
-Delasticsearch.port=9200
-Dshare.host=127.0.0.1
-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"
-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
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/probes/-ready-
interval: 30s
timeout: 3s
retries: 3
start_period: 1m
transform-router:
mem_limit: 512m
image: quay.io/alfresco/alfresco-transform-router:4.0.1
Expand All @@ -69,7 +77,7 @@ services:
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file
ports:
- "8095:8095"
links:
depends_on:
- activemq
transform-core-aio:
image: alfresco/alfresco-transform-core-aio:5.0.1
Expand All @@ -83,7 +91,7 @@ services:
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file
ports:
- "8090:8090"
links:
depends_on:
- activemq
shared-file-store:
image: quay.io/alfresco/alfresco-shared-file-store:4.0.1
Expand Down Expand Up @@ -121,25 +129,53 @@ services:
command: postgres -c max_connections=300 -c log_min_messages=LOG
ports:
- "5432:5432"
solr6:
image: quay.io/alfresco/search-services:2.0.9
mem_limit: 2g
elasticsearch:
image: elasticsearch:7.10.1
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
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
ports:
- "8083:8983" # Browser port
- 9200:9200
- 9300:9300
search:
image: quay.io/alfresco/alfresco-elasticsearch-live-indexing:4.0.0.1
depends_on:
- elasticsearch
- alfresco
environment:
ALFRESCO_ACCEPTED_CONTENT_MEDIA_TYPES_CACHE_BASE_URL: >-
http://transform-core-aio:8090/transform/config
ALFRESCO_SHAREDFILESTORE_BASEURL: >-
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file/
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
SPRING_ELASTICSEARCH_REST_URIS: http://elasticsearch:9200
search-reindexing:
image: quay.io/alfresco/alfresco-elasticsearch-reindexing:4.0.0.1
restart: on-failure:10
environment:
ALFRESCO_ACCEPTED_CONTENT_MEDIA_TYPES_CACHE_BASE_URL: >-
http://transform-core-aio:8090/transform/config
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/alfresco
SPRING_DATASOURCE_USERNAME: alfresco
SPRING_DATASOURCE_PASSWORD: alfresco
SPRING_ELASTICSEARCH_REST_URIS: http://elasticsearch:9200
depends_on:
postgres:
condition: service_started
elasticsearch:
condition: service_started
alfresco:
condition: service_healthy
activemq:
image: alfresco/alfresco-activemq:5.18-jre17-rockylinux8
mem_limit: 1g
Expand Down Expand Up @@ -172,13 +208,9 @@ services:
- alfresco
- digital-workspace
- control-center
- share
ports:
- "8080:8080"
links:
- digital-workspace
- alfresco
- share
- control-center
sync-service:
image: quay.io/alfresco/service-sync:4.0.1
mem_limit: 1g
Expand Down
96 changes: 65 additions & 31 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,35 @@ services:
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=secret
-Dsolr.sharedSecret=secret
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dindex.subsystem.name=elasticsearch
-Delasticsearch.createIndexIfNotExists=true
-Delasticsearch.host=elasticsearch
-Delasticsearch.port=9200
-Dshare.host=127.0.0.1
-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"
-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
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/probes/-ready-
interval: 30s
timeout: 3s
retries: 3
start_period: 1m
transform-router:
mem_limit: 512m
image: quay.io/alfresco/alfresco-transform-router:4.0.1
Expand All @@ -69,7 +77,7 @@ services:
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file
ports:
- "8095:8095"
links:
depends_on:
- activemq
transform-core-aio:
image: alfresco/alfresco-transform-core-aio:5.0.1
Expand All @@ -83,7 +91,7 @@ services:
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file
ports:
- "8090:8090"
links:
depends_on:
- activemq
shared-file-store:
image: quay.io/alfresco/alfresco-shared-file-store:4.0.1
Expand Down Expand Up @@ -121,25 +129,55 @@ services:
command: postgres -c max_connections=300 -c log_min_messages=LOG
ports:
- "5432:5432"
solr6:
image: quay.io/alfresco/search-services:2.0.9
mem_limit: 2g
elasticsearch:
image: elasticsearch:7.10.1
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
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
ports:
- "8083:8983" # Browser port
- 9200:9200
- 9300:9300
search:
image: quay.io/alfresco/alfresco-elasticsearch-live-indexing:4.0.0.1
mem_limit: 1g
depends_on:
- elasticsearch
- alfresco
environment:
ALFRESCO_ACCEPTED_CONTENT_MEDIA_TYPES_CACHE_BASE_URL: >-
http://transform-core-aio:8090/transform/config
ALFRESCO_SHAREDFILESTORE_BASEURL: >-
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file/
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
SPRING_ELASTICSEARCH_REST_URIS: http://elasticsearch:9200
search-reindexing:
image: quay.io/alfresco/alfresco-elasticsearch-reindexing:4.0.0.1
mem_limit: 1g
restart: on-failure:10
environment:
ALFRESCO_ACCEPTED_CONTENT_MEDIA_TYPES_CACHE_BASE_URL: >-
http://transform-core-aio:8090/transform/config
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/alfresco
SPRING_DATASOURCE_USERNAME: alfresco
SPRING_DATASOURCE_PASSWORD: alfresco
SPRING_ELASTICSEARCH_REST_URIS: http://elasticsearch:9200
depends_on:
postgres:
condition: service_started
elasticsearch:
condition: service_started
alfresco:
condition: service_healthy
activemq:
image: alfresco/alfresco-activemq:5.18-jre17-rockylinux8
mem_limit: 1g
Expand Down Expand Up @@ -168,13 +206,9 @@ services:
proxy:
image: alfresco/alfresco-acs-nginx:3.4.2
mem_limit: 128m
depends_on:
- alfresco
- digital-workspace
- control-center
ports:
- "8080:8080"
links:
depends_on:
- digital-workspace
- alfresco
- share
Expand Down
74 changes: 0 additions & 74 deletions docker-compose/elasticsearch-override-docker-compose.yml

This file was deleted.

Loading

0 comments on commit ca46ddf

Please sign in to comment.