Compare commits
53 Commits
propagate/
...
acs-search
Author | SHA1 | Date | |
---|---|---|---|
1619c075c0 | |||
bae1c47984 | |||
df452d73a0 | |||
25e26949d0 | |||
59c87eb302 | |||
7ef9d4f186 | |||
2eab63c2a8 | |||
8c875fe850 | |||
81ca2ed038 | |||
51b777c0c5 | |||
f7c664e7f4 | |||
ef221d9c7a | |||
57af0a20b1 | |||
76e4287aa1 | |||
241a3e47ea | |||
c2a9679ede | |||
4748d0e7b6 | |||
299d2fe04d | |||
d556040909 | |||
64f85da579 | |||
8a7d6d2016 | |||
9899d03da9 | |||
5b4069427e | |||
7511eba729 | |||
173de2375e | |||
8e3301877a | |||
8b4e45c2e2 | |||
9e1a819e8b | |||
10e7f81163 | |||
481e1bb38d | |||
29f254a68e | |||
979924957c | |||
2a4b61053d | |||
b8016f4ac7 | |||
|
2c82f844b1 | ||
|
b805fbbd1a | ||
|
b7c883068a | ||
6a8b1e2628 | |||
932159b238 | |||
135739da10 | |||
720346e9d7 | |||
68e0652872 | |||
b81db4fc0f | |||
c377995a1d | |||
e223fd99a3 | |||
5beadf9f35 | |||
f94f3e82e8 | |||
cb5d306478 | |||
abaa41345a | |||
fad6fe1c2a | |||
2789af0bd7 | |||
91da0dedb6 | |||
8d3c4987f0 |
5
.env
5
.env
@@ -4,3 +4,8 @@ ALFRESCO_LICENSE_DIR=~/alfresco/license
|
||||
PROXY_PROTOCOL=http
|
||||
PROXY_HOST=localhost
|
||||
PROXY_PORT=8080
|
||||
|
||||
ACS_TAG=7.4.1.1
|
||||
AAMQ_TAG=latest
|
||||
POSTGRES_TAG=13
|
||||
ASIE_TAG=2.0.8.2
|
||||
|
@@ -1,53 +1,42 @@
|
||||
# Sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
|
||||
# Originally sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
|
||||
#
|
||||
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
|
||||
version: "2"
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
|
||||
platform:
|
||||
image: alfresco/alfresco-content-repository:6.2.2.3
|
||||
mem_limit: 1700m
|
||||
image: alfresco/alfresco-content-repository-community:${ACS_TAG}
|
||||
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: "
|
||||
-Xms512m -Xmx1g
|
||||
-Ddb.driver=org.postgresql.Driver
|
||||
-Ddb.username=alfresco
|
||||
-Ddb.password=alfresco
|
||||
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
||||
-Dindex.subsystem.name=solr6
|
||||
-Dsolr.host=search
|
||||
-Dsolr.port=8983
|
||||
-Dsolr.secureComms=none
|
||||
-Dshare.host=${PROXY_HOST}
|
||||
-Dshare.port=${PROXY_PORT}
|
||||
-Dshare.protocol=${PROXY_PROTOCOL}
|
||||
-Dsolr.secureComms=secret
|
||||
-Dsolr.sharedSecret=alfresco-secret
|
||||
-Dalfresco.host=${PROXY_HOST}
|
||||
-Dalfresco.port=${PROXY_PORT}
|
||||
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||
-Daos.baseUrlOverwrite=${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/alfresco/aos
|
||||
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
|
||||
-Ddeployment.method=DOCKER_COMPOSE
|
||||
-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
|
||||
-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
|
||||
|
||||
-Dtransform.service.enabled=true
|
||||
-Dcors.enabled=false
|
||||
-Dtransform.service.enabled=false
|
||||
-Dlocal.transform.service.enabled=false
|
||||
|
||||
-Dtransform.service.url=http://transform-router:8095
|
||||
-Dsfs.url=http://shared-file-store:8099
|
||||
-Dalfresco-pdf-renderer.url=http://transform-engine-aio:8090
|
||||
-Djodconverter.url=http://transform-engine-aio:8090
|
||||
-Dimg.url=http://transform-engine-aio:8090
|
||||
-Dtika.url=http://transform-engine-aio:8090
|
||||
-Dtransform.misc.url=http://transform-engine-aio:8090
|
||||
|
||||
-Ddsync.service.uris=${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/sync
|
||||
|
||||
-Dsystem.content.eagerOrphanCleanup=true
|
||||
-Dsystem.content.orphanProtectDays=0
|
||||
-Djodconverter.enabled=false
|
||||
@@ -55,114 +44,57 @@ services:
|
||||
depends_on:
|
||||
- postgres-acs
|
||||
- activemq
|
||||
- shared-file-store
|
||||
volumes:
|
||||
- "$ALFRESCO_LICENSE_DIR/acs:/usr/local/tomcat/shared/classes/alfresco/extension/license:ro"
|
||||
|
||||
transform-router:
|
||||
image: quay.io/alfresco/alfresco-transform-router:1.3.1
|
||||
environment:
|
||||
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"
|
||||
depends_on:
|
||||
- activemq
|
||||
- shared-file-store
|
||||
|
||||
transform-core-aio:
|
||||
image: alfresco/alfresco-transform-core-aio:2.3.6
|
||||
environment:
|
||||
ACTIVEMQ_URL: "nio://activemq:61616"
|
||||
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
|
||||
depends_on:
|
||||
- activemq
|
||||
- shared-file-store
|
||||
|
||||
shared-file-store:
|
||||
image: alfresco/alfresco-shared-file-store:0.10.0
|
||||
volumes:
|
||||
- shared-file-store-volume:/tmp/Alfresco/sfs
|
||||
|
||||
share:
|
||||
image: alfresco/alfresco-share:6.2.2
|
||||
mem_limit: 512m
|
||||
environment:
|
||||
REPO_HOST: "platform"
|
||||
CSRF_FILTER_REFERER: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?/?.*"
|
||||
CSRF_FILTER_ORIGIN: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?"
|
||||
JAVA_OPTS: "
|
||||
-Dshare.host=${PROXY_HOST}
|
||||
-Dshare.port=${PROXY_PORT}
|
||||
-Dshare.protocol=${PROXY_PROTOCOL}
|
||||
-Dalfresco.host=${PROXY_HOST}
|
||||
-Dalfresco.port=${PROXY_PORT}
|
||||
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||
"
|
||||
- acsbin-volume:/usr/local/tomcat/alf_data:rw
|
||||
|
||||
postgres-acs:
|
||||
image: postgres:11.7
|
||||
mem_limit: 512m
|
||||
image: postgres:${POSTGRES_TAG}
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=alfresco
|
||||
- POSTGRES_USER=alfresco
|
||||
- POSTGRES_DB=alfresco
|
||||
POSTGRES_PASSWORD: alfresco
|
||||
POSTGRES_USER: alfresco
|
||||
POSTGRES_DB: alfresco
|
||||
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
||||
volumes:
|
||||
- acsdb-volume:/var/lib/postgresql/data:rw
|
||||
|
||||
search:
|
||||
image: alfresco/alfresco-search-services:2.0.1
|
||||
mem_limit: 2g
|
||||
image: alfresco/alfresco-search-services:${ASIE_TAG}
|
||||
environment:
|
||||
- SOLR_ALFRESCO_HOST=platform
|
||||
- SOLR_ALFRESCO_PORT=8080
|
||||
- SOLR_SOLR_HOST=search
|
||||
- SOLR_SOLR_PORT=8983
|
||||
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
|
||||
- ALFRESCO_SECURE_COMMS=none
|
||||
SOLR_ALFRESCO_HOST: platform
|
||||
SOLR_SOLR_HOST: search
|
||||
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
|
||||
ALFRESCO_SECURE_COMMS: secret
|
||||
JAVA_TOOL_OPTIONS: "
|
||||
-Dalfresco.secureComms.secret=alfresco-secret
|
||||
"
|
||||
healthcheck:
|
||||
test: "curl -fsS http://localhost:8983/solr"
|
||||
volumes:
|
||||
- solrindex-volume:/opt/alfresco-search-services/data:rw
|
||||
|
||||
activemq:
|
||||
image: alfresco/alfresco-activemq:5.15.8
|
||||
mem_limit: 256m
|
||||
|
||||
sync:
|
||||
image: quay.io/alfresco/service-sync:3.3.3.1
|
||||
mem_limit: 512m
|
||||
image: alfresco/alfresco-activemq:${AAMQ_TAG}
|
||||
environment:
|
||||
JAVA_OPTS : "
|
||||
-Dsql.db.driver=org.postgresql.Driver
|
||||
-Dsql.db.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
||||
-Dsql.db.username=alfresco
|
||||
-Dsql.db.password=alfresco
|
||||
-Dmessaging.broker.host=activemq
|
||||
-Drepo.hostname=platform
|
||||
-Drepo.port=8080
|
||||
-Ddw.server.applicationConnectors[0].type=http
|
||||
-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
|
||||
"
|
||||
depends_on:
|
||||
- postgres-acs
|
||||
- activemq
|
||||
|
||||
digital-workspace:
|
||||
image: quay.io/alfresco/alfresco-digital-workspace:2.0.0-adw
|
||||
mem_limit: 128m
|
||||
environment:
|
||||
BASE_PATH: ./
|
||||
APP_CONFIG_ECM_HOST: "${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}"
|
||||
APP_BASE_SHARE_URL: "${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/#/preview/s"
|
||||
ACTIVEMQ_OPTS_MEMORY: -Xms64m -Xmx256m
|
||||
ACTIVEMQ_ADMIN_LOGIN: alfresco
|
||||
ACTIVEMQ_ADMIN_PASSWORD: alfresco
|
||||
volumes:
|
||||
- activemq-volume:/opt/activemq/data:rw
|
||||
|
||||
proxy:
|
||||
build: ./nginx-ingress
|
||||
image: local/nginx-ingress:acs-sync-share-adw
|
||||
image: local/nginx-ingress:acs
|
||||
ports:
|
||||
- 8080:8080
|
||||
depends_on:
|
||||
- platform
|
||||
- sync
|
||||
- share
|
||||
- digital-workspace
|
||||
|
||||
volumes:
|
||||
shared-file-store-volume:
|
||||
driver_opts:
|
||||
type: tmpfs
|
||||
device: tmpfs
|
||||
acsbin-volume:
|
||||
driver: local
|
||||
acsdb-volume:
|
||||
driver: local
|
||||
activemq-volume:
|
||||
driver: local
|
||||
solrindex-volume:
|
||||
driver: local
|
||||
|
@@ -4,18 +4,6 @@ if [[ $ACS_PLATFORM_URL ]]; then
|
||||
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if [[ $ACS_SYNC_URL ]]; then
|
||||
sed -i s%http:\/\/sync:9090%"$ACS_SYNC_URL"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if [[ $ACS_SHARE_URL ]]; then
|
||||
sed -i s%http:\/\/share:8080%"$ACS_SHARE_URL"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if [[ $ADW_URL ]]; then
|
||||
sed -i s%http:\/\/digital-workspace:8080%"$ADW_URL"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if [[ $ACCESS_LOG ]]; then
|
||||
sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
@@ -48,23 +48,5 @@ http {
|
||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||
absolute_redirect off;
|
||||
}
|
||||
|
||||
location /sync/ {
|
||||
proxy_pass http://sync:9090/alfresco/;
|
||||
}
|
||||
|
||||
location /share/ {
|
||||
proxy_pass http://share:8080;
|
||||
|
||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||
absolute_redirect off;
|
||||
}
|
||||
|
||||
location /workspace/ {
|
||||
proxy_pass http://digital-workspace:8080/;
|
||||
|
||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||
absolute_redirect off;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user