Hi,
Could anyone provide an example of an ACS (latest version if possible) docker-compose, and related Dockerfiles, using an external DB and external volumes?
Thanks in advance
Regards
Hope this helps:
https://hub.alfresco.com/t5/alfresco-content-services-blog/managing-alfresco-search-services-1-4-storage/ba-p/300972
I guess that could help:
https://github.com/Alfresco/alfresco-docker-installer
Thanks for the reponse, Angel.
Volumes used in the provided link just applies to postgres and solr, what I need is to set an external (not bind mount) volume for the alfresco repo, which in V6.2.2 uses a "shared file store" in this manner:
services:alfresco:image: alfresco/alfresco-content-repository:6.2.2-RC1mem_limit: 1700menvironment:JAVA_OPTS: "-Ddb.driver=org.postgresql.Driver-Ddb.username=alfresco-Ddb.password=alfresco-Ddb.url=jdbcostgresql://postgres:5432/alfresco-Dsolr.host=solr6-Dsolr.port=8983-Dsolr.secureComms=none-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=\"failovernio://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-Ddsync.service.uris=http://localhost:9090/alfresco-DtrialUid=id5487903-Xms1500m-Xmx1500m"
.......
shared-file-store:image: alfresco/alfresco-shared-file-store:0.7.0mem_limit: 512menvironment:JAVA_OPTS: " -Xms256m -Xmx512m"scheduler.content.age.millis: 86400000scheduler.cleanup.interval: 86400000ports:- 8099:8099volumes:- shared-file-store-volume:/tmp/Alfresco/sfs
.....
volumes:shared-file-store-volume:driver_opts:type: tmpfsdevice: tmpfs
On the other hand, I need to use an external, Oracle DB.
services: alfresco: image: alfresco/alfresco-content-repository:6.2.2-RC1 mem_limit: 1700m environment: JAVA_OPTS: " -Ddb.driver=oracle.jdbc.driver.OracleDriver -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.url=jdbc:oracle:thin:@/ip:1521/udp -Dsolr.host=solr6 -Dsolr.port=8983 -Dsolr.secureComms=none -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=\"failovernio://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 -Ddsync.service.uris=http://localhost:9090/alfresco -DtrialUid=id5487903 -Xms1500m -Xmx1500m " volumes: - /your data path:/usr/local/tomcat/alf_data
Thanks for your answer.
What about this?
-Dsfs.url=http://shared-file-store:8099/
Won't be alfresco repo using the shared file store?
What about the /opt/alfresco-search-services/contentstore? Shouldn't it be also mapped to an external volume? Regards
You can map index data directory ,contentstore directory,solrhome directory out based on your requirements
- your data pah :/opt/alfresco-search-services/data - your contentstore pah :/opt/alfresco-search-services/contentsotre - your solr home path:/opt/alfresco-search-services/solrhome
Thank you for your answer.
Yes, I know I can map any directory, my question was regarding which directories should be externalized in order for the solr data to be persisted. Is the data directory enough to be mapped (and thus backed up)? Or should I also map (back up) any other directory (such as the contentstore)? What kind of data is saved in there?
Thank you