<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122813#M33646</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86744"&gt;@John1244&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for accepting this solution - helps other users to know it helped.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Tue, 10 Aug 2021 13:08:53 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2021-08-10T13:08:53Z</dc:date>
    <item>
      <title>Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122804#M33637</link>
      <description>&lt;P&gt;I have resently installed alfresco 7 usin docker compose and i am trying to restore the content store and content store deleted folders. I have found that i need to change the dir.root in alfresco global properties, but i have found a total of 4 alfresco global properties, 2 being blank and the other two saying:&lt;BR /&gt;#&lt;BR /&gt;# Disable load of sample site&lt;BR /&gt;#&lt;BR /&gt;sample.site.disabled=false&lt;/P&gt;&lt;P&gt;Secoundly besides the alfresco global properties I also have an issue with changing the volume in the docker-compose file when I do i get this error:&lt;BR /&gt;&lt;BR /&gt;ERROR: The Compose file './docker-compose.yml' is invalid because:&lt;BR /&gt;Unsupported config option for services.volumes: 'volumes/data/alf-repo-data'&lt;BR /&gt;services.alfresco.environment.volumes contains ["./volumes/data/alf-repo-data:/usr/local/tomcat/alf_data"], which is an invalid type, it should be a string, number, or a null&lt;/P&gt;&lt;P&gt;Also this is what my docker-compose.yml file looks like:&lt;/P&gt;&lt;P&gt;# This docker-compose file will spin up an ACS cluster on a local host or on a server and it requires a minimum of 12GB Memory to distribute among containers.&lt;BR /&gt;# Limit container memory and assign X percentage to JVM. There are couple of ways to allocate JVM Memory for ACS Containers&lt;BR /&gt;# For example: 'JAVA_OPTS: "$JAVA_OPTS -XX:+PrintFlagsFinal -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"'&lt;BR /&gt;# See Oracle docs (&lt;A href="https://docs.oracle.com/javase/9/gctuning/parallel-collector1.htm#JSGCT-GUID-CAB83393-3438-44ED-98F0-D15641B43C7D" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/9/gctuning/parallel-collector1.htm#JSGCT-GUID-CAB83393-3438-44ED-98F0-D15641B43C7D&lt;/A&gt;).&lt;BR /&gt;# If the container memory is not explicitly set then the flags above will set the max heap default to 1/4 of the container's memory, which may not be ideal.&lt;BR /&gt;# For performance tuning, assign the container memory and give a percentage of it to the JVM.&lt;/P&gt;&lt;P&gt;# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose&lt;BR /&gt;version: "2"&lt;/P&gt;&lt;P&gt;services:&lt;BR /&gt;alfresco:&lt;BR /&gt;image: alfresco/alfresco-content-repository-community:7.0.0&lt;BR /&gt;mem_limit: 1500m&lt;BR /&gt;environment:&lt;BR /&gt;JAVA_TOOL_OPTIONS: "&lt;BR /&gt;-Dencryption.keystore.type=JCEKS&lt;BR /&gt;-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding&lt;BR /&gt;-Dencryption.keyAlgorithm=DESede&lt;BR /&gt;-Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore&lt;BR /&gt;-Dmetadata-keystore.password=mp6yc0UD9e&lt;BR /&gt;-Dmetadata-keystore.aliases=metadata&lt;BR /&gt;-Dmetadata-keystore.metadata.password=oKIWzVdEdA&lt;BR /&gt;-Dmetadata-keystore.metadata.algorithm=DESede&lt;BR /&gt;"&lt;BR /&gt;JAVA_OPTS: "&lt;BR /&gt;-Ddb.driver=org.postgresql.Driver&lt;BR /&gt;-Ddb.username=alfresco&lt;BR /&gt;-Ddb.password=alfresco&lt;BR /&gt;-Ddb.url=jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://postgres:5432/alfresco&lt;BR /&gt;-Dsolr.host=solr6&lt;BR /&gt;-Dsolr.port=8983&lt;BR /&gt;-Dsolr.http.connection.timeout=1000&lt;BR /&gt;-Dsolr.secureComms=none&lt;BR /&gt;-Dsolr.base.url=/solr&lt;BR /&gt;-Dindex.subsystem.name=solr6&lt;BR /&gt;-Dshare.host=127.0.0.1&lt;BR /&gt;-Dshare.port=8080&lt;BR /&gt;-Dalfresco.host=localhost&lt;BR /&gt;-Dalfresco.port=8080&lt;BR /&gt;-Daos.baseUrlOverwrite=&lt;A href="http://localhost:8080/alfresco/aos" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/aos&lt;/A&gt;&lt;BR /&gt;-Dmessaging.broker.url=\"failover&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;nio://activemq:61616)?timeout=3000&amp;amp;jms.useCompression=true\"&lt;BR /&gt;-Ddeployment.method=DOCKER_COMPOSE&lt;BR /&gt;-DlocalTransform.core-aio.url=&lt;A href="http://transform-core-aio:8090/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://transform-core-aio:8090/&lt;/A&gt;&lt;BR /&gt;-Dcsrf.filter.enabled=false&lt;BR /&gt;-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80&lt;BR /&gt;"&lt;BR /&gt;volumes:&lt;BR /&gt;- ./volumes/data/alf-repo-data:/usr/local/tomcat/alf_data&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;transform-core-aio:&lt;BR /&gt;image: alfresco/alfresco-transform-core-aio:2.3.10&lt;BR /&gt;mem_limit: 1536m&lt;BR /&gt;environment:&lt;BR /&gt;JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"&lt;BR /&gt;ports:&lt;BR /&gt;- 8090:8090&lt;/P&gt;&lt;P&gt;share:&lt;BR /&gt;image: alfresco/alfresco-share:7.0.0&lt;BR /&gt;mem_limit: 1g&lt;BR /&gt;environment:&lt;BR /&gt;REPO_HOST: "alfresco"&lt;BR /&gt;REPO_PORT: "8080"&lt;BR /&gt;JAVA_OPTS: "&lt;BR /&gt;-XX:MinRAMPercentage=50&lt;BR /&gt;-XX:MaxRAMPercentage=80&lt;BR /&gt;-Dalfresco.host=localhost&lt;BR /&gt;-Dalfresco.port=8080&lt;BR /&gt;-Dalfresco.context=alfresco&lt;BR /&gt;-Dalfresco.protocol=http&lt;BR /&gt;"&lt;/P&gt;&lt;P&gt;postgres:&lt;BR /&gt;image: postgres:13.1&lt;BR /&gt;mem_limit: 512m&lt;BR /&gt;environment:&lt;BR /&gt;- POSTGRES_PASSWORD=alfresco&lt;BR /&gt;- POSTGRES_USER=alfresco&lt;BR /&gt;- POSTGRES_DB=alfresco&lt;BR /&gt;command: postgres -c max_connections=300 -c log_min_messages=LOG&lt;BR /&gt;ports:&lt;BR /&gt;- 5432:5432&lt;/P&gt;&lt;P&gt;solr6:&lt;BR /&gt;image: alfresco/alfresco-search-services:2.0.1&lt;BR /&gt;mem_limit: 2g&lt;BR /&gt;environment:&lt;BR /&gt;#Solr needs to know how to register itself with Alfresco&lt;BR /&gt;- SOLR_ALFRESCO_HOST=alfresco&lt;BR /&gt;- SOLR_ALFRESCO_PORT=8080&lt;BR /&gt;#Alfresco needs to know how to call solr&lt;BR /&gt;- SOLR_SOLR_HOST=solr6&lt;BR /&gt;- SOLR_SOLR_PORT=8983&lt;BR /&gt;#Create the default alfresco and archive cores&lt;BR /&gt;- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive&lt;BR /&gt;#HTTP by default&lt;BR /&gt;- ALFRESCO_SECURE_COMMS=none&lt;BR /&gt;ports:&lt;BR /&gt;- 8083:8983 #Browser port&lt;/P&gt;&lt;P&gt;activemq:&lt;BR /&gt;image: alfresco/alfresco-activemq:5.16.1&lt;BR /&gt;mem_limit: 1g&lt;BR /&gt;ports:&lt;BR /&gt;- 8161:8161 # Web Console&lt;BR /&gt;- 5672:5672 # AMQP&lt;BR /&gt;- 61616:61616 # OpenWire&lt;BR /&gt;- 61613:61613 # STOMP&lt;/P&gt;&lt;P&gt;proxy:&lt;BR /&gt;image: alfresco/alfresco-acs-nginx:3.1.1&lt;BR /&gt;mem_limit: 128m&lt;BR /&gt;environment:&lt;BR /&gt;DISABLE_PROMETHEUS: "true"&lt;BR /&gt;DISABLE_SYNCSERVICE: "true"&lt;BR /&gt;DISABLE_ADW: "true"&lt;BR /&gt;depends_on:&lt;BR /&gt;- alfresco&lt;BR /&gt;ports:&lt;BR /&gt;- 8080:8080&lt;BR /&gt;links:&lt;BR /&gt;- alfresco&lt;BR /&gt;- share&lt;BR /&gt;volumes:&lt;BR /&gt;volumes/data/alf-repo-data:&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 20:01:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122804#M33637</guid>
      <dc:creator>John1244</dc:creator>
      <dc:date>2021-08-04T20:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122805#M33638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86744"&gt;@John1244&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you are moving only alf_data to another server but not your database, without the&amp;nbsp;old database new instance won't work.&lt;/P&gt;&lt;P&gt;Ideally, to migrate Alfresco you should take the backup of the followings&lt;/P&gt;&lt;P&gt;1. Alfresco database&lt;/P&gt;&lt;P&gt;2. alf_data&lt;/P&gt;&lt;P&gt;3. indexes&lt;/P&gt;&lt;P&gt;4. customization&amp;nbsp;and configurations you have made&lt;/P&gt;&lt;P&gt;You can then restore the backup into new Alfresco instance.&lt;/P&gt;&lt;P&gt;BTW, instead of use alfresco-global.properties is better to use docker-compose.yml inside of JAVA_OPTS block.&lt;/P&gt;&lt;P&gt;Please let us know if you have further questions.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 09:25:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122805#M33638</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2021-08-05T09:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122806#M33639</link>
      <description>&lt;P&gt;Okay so if I want to restore the content store I first need to restore the database backup. (As for cuztomizations, don't think there were any, same for indexes).&lt;/P&gt;&lt;P&gt;you also mentioned to use java_opts in the docker-compse file instead of alfresco-global properties, but how exactly do i do that is it the samething just typing :&amp;nbsp;&lt;SPAN class="pl-c1"&gt;dir.root&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;/usr/local/tomcat/alf_data&amp;nbsp;&amp;nbsp;&lt;BR /&gt;or something else, can u be specific please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;I also still don't know what this error is what does it mean, I get it when i try to import volumes in the docker-compose file:&lt;BR /&gt;&lt;SPAN&gt;ERROR: The Compose file './docker-compose.yml' is invalid because:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unsupported config option for services.volumes: 'volumes/data/alf-repo-data'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services.alfresco.environment.volumes contains ["./volumes/data/alf-repo-data:/usr/local/tomcat/alf_data"], which is an invalid type, it should be a string, number, or a null&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN&gt;Thank you in advance and have a nice day.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 19:01:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122806#M33639</guid>
      <dc:creator>John1244</dc:creator>
      <dc:date>2021-08-05T19:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122807#M33640</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86744"&gt;@John1244&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have resently installed alfresco 7 usin docker compose and i am trying to restore the content store and content store deleted folders. I have found that i need to change the dir.root in alfresco global properties, but i have found a total of 4 alfresco global properties, 2 being blank and the other two saying:&lt;BR /&gt;#&lt;BR /&gt;# Disable load of sample site&lt;BR /&gt;#&lt;BR /&gt;sample.site.disabled=false&lt;/P&gt;
&lt;P&gt;Secoundly besides the alfresco global properties I also have an issue with changing the volume in the docker-compose file when I do i get this error:&lt;BR /&gt;&lt;BR /&gt;ERROR: The Compose file './docker-compose.yml' is invalid because:&lt;BR /&gt;Unsupported config option for services.volumes: 'volumes/data/alf-repo-data'&lt;BR /&gt;services.alfresco.environment.volumes contains ["./volumes/data/alf-repo-data:/usr/local/tomcat/alf_data"], which is an invalid type, it should be a string, number, or a null&lt;/P&gt;
&lt;P&gt;Also this is what my docker-compose.yml file looks like:&lt;/P&gt;
&lt;P&gt;# This docker-compose file will spin up an ACS cluster on a local host or on a server and it requires a minimum of 12GB Memory to distribute among containers.&lt;BR /&gt;# Limit container memory and assign X percentage to JVM. There are couple of ways to allocate JVM Memory for ACS Containers&lt;BR /&gt;# For example: 'JAVA_OPTS: "$JAVA_OPTS -XX:+PrintFlagsFinal -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"'&lt;BR /&gt;# See Oracle docs (&lt;A href="https://docs.oracle.com/javase/9/gctuning/parallel-collector1.htm#JSGCT-GUID-CAB83393-3438-44ED-98F0-D15641B43C7D" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.oracle.com/javase/9/gctuning/parallel-collector1.htm#JSGCT-GUID-CAB83393-3438-44ED-98F0-D15641B43C7D&lt;/A&gt;).&lt;BR /&gt;# If the container memory is not explicitly set then the flags above will set the max heap default to 1/4 of the container's memory, which may not be ideal.&lt;BR /&gt;# For performance tuning, assign the container memory and give a percentage of it to the JVM.&lt;/P&gt;
&lt;P&gt;# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose&lt;BR /&gt;version: "2"&lt;/P&gt;
&lt;P&gt;services:&lt;BR /&gt;alfresco:&lt;BR /&gt;image: alfresco/alfresco-content-repository-community:7.0.0&lt;BR /&gt;mem_limit: 1500m&lt;BR /&gt;environment:&lt;BR /&gt;JAVA_TOOL_OPTIONS: "&lt;BR /&gt;-Dencryption.keystore.type=JCEKS&lt;BR /&gt;-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding&lt;BR /&gt;-Dencryption.keyAlgorithm=DESede&lt;BR /&gt;-Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore&lt;BR /&gt;-Dmetadata-keystore.password=mp6yc0UD9e&lt;BR /&gt;-Dmetadata-keystore.aliases=metadata&lt;BR /&gt;-Dmetadata-keystore.metadata.password=oKIWzVdEdA&lt;BR /&gt;-Dmetadata-keystore.metadata.algorithm=DESede&lt;BR /&gt;"&lt;BR /&gt;JAVA_OPTS: "&lt;BR /&gt;-Ddb.driver=org.postgresql.Driver&lt;BR /&gt;-Ddb.username=alfresco&lt;BR /&gt;-Ddb.password=alfresco&lt;BR /&gt;-Ddb.url=jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://postgres:5432/alfresco&lt;BR /&gt;-Dsolr.host=solr6&lt;BR /&gt;-Dsolr.port=8983&lt;BR /&gt;-Dsolr.http.connection.timeout=1000&lt;BR /&gt;-Dsolr.secureComms=none&lt;BR /&gt;-Dsolr.base.url=/solr&lt;BR /&gt;-Dindex.subsystem.name=solr6&lt;BR /&gt;-Dshare.host=127.0.0.1&lt;BR /&gt;-Dshare.port=8080&lt;BR /&gt;-Dalfresco.host=localhost&lt;BR /&gt;-Dalfresco.port=8080&lt;BR /&gt;-Daos.baseUrlOverwrite=&lt;A href="http://localhost:8080/alfresco/aos" target="_blank" rel="noopener nofollow noreferrer"&gt;http://localhost:8080/alfresco/aos&lt;/A&gt;&lt;BR /&gt;-Dmessaging.broker.url=\"failover&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;nio://activemq:61616)?timeout=3000&amp;amp;jms.useCompression=true\"&lt;BR /&gt;-Ddeployment.method=DOCKER_COMPOSE&lt;BR /&gt;-DlocalTransform.core-aio.url=&lt;A href="http://transform-core-aio:8090/" target="_blank" rel="noopener nofollow noreferrer"&gt;http://transform-core-aio:8090/&lt;/A&gt;&lt;BR /&gt;-Dcsrf.filter.enabled=false&lt;BR /&gt;-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80&lt;BR /&gt;"&lt;BR /&gt;volumes:&lt;BR /&gt;- ./volumes/data/alf-repo-data:/usr/local/tomcat/alf_data&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;transform-core-aio:&lt;BR /&gt;image: alfresco/alfresco-transform-core-aio:2.3.10&lt;BR /&gt;mem_limit: 1536m&lt;BR /&gt;environment:&lt;BR /&gt;JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"&lt;BR /&gt;ports:&lt;BR /&gt;- 8090:8090&lt;/P&gt;
&lt;P&gt;share:&lt;BR /&gt;image: alfresco/alfresco-share:7.0.0&lt;BR /&gt;mem_limit: 1g&lt;BR /&gt;environment:&lt;BR /&gt;REPO_HOST: "alfresco"&lt;BR /&gt;REPO_PORT: "8080"&lt;BR /&gt;JAVA_OPTS: "&lt;BR /&gt;-XX:MinRAMPercentage=50&lt;BR /&gt;-XX:MaxRAMPercentage=80&lt;BR /&gt;-Dalfresco.host=localhost&lt;BR /&gt;-Dalfresco.port=8080&lt;BR /&gt;-Dalfresco.context=alfresco&lt;BR /&gt;-Dalfresco.protocol=http&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;postgres:&lt;BR /&gt;image: postgres:13.1&lt;BR /&gt;mem_limit: 512m&lt;BR /&gt;environment:&lt;BR /&gt;- POSTGRES_PASSWORD=alfresco&lt;BR /&gt;- POSTGRES_USER=alfresco&lt;BR /&gt;- POSTGRES_DB=alfresco&lt;BR /&gt;command: postgres -c max_connections=300 -c log_min_messages=LOG&lt;BR /&gt;ports:&lt;BR /&gt;- 5432:5432&lt;/P&gt;
&lt;P&gt;solr6:&lt;BR /&gt;image: alfresco/alfresco-search-services:2.0.1&lt;BR /&gt;mem_limit: 2g&lt;BR /&gt;environment:&lt;BR /&gt;#Solr needs to know how to register itself with Alfresco&lt;BR /&gt;- SOLR_ALFRESCO_HOST=alfresco&lt;BR /&gt;- SOLR_ALFRESCO_PORT=8080&lt;BR /&gt;#Alfresco needs to know how to call solr&lt;BR /&gt;- SOLR_SOLR_HOST=solr6&lt;BR /&gt;- SOLR_SOLR_PORT=8983&lt;BR /&gt;#Create the default alfresco and archive cores&lt;BR /&gt;- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive&lt;BR /&gt;#HTTP by default&lt;BR /&gt;- ALFRESCO_SECURE_COMMS=none&lt;BR /&gt;ports:&lt;BR /&gt;- 8083:8983 #Browser port&lt;/P&gt;
&lt;P&gt;activemq:&lt;BR /&gt;image: alfresco/alfresco-activemq:5.16.1&lt;BR /&gt;mem_limit: 1g&lt;BR /&gt;ports:&lt;BR /&gt;- 8161:8161 # Web Console&lt;BR /&gt;- 5672:5672 # AMQP&lt;BR /&gt;- 61616:61616 # OpenWire&lt;BR /&gt;- 61613:61613 # STOMP&lt;/P&gt;
&lt;P&gt;proxy:&lt;BR /&gt;image: alfresco/alfresco-acs-nginx:3.1.1&lt;BR /&gt;mem_limit: 128m&lt;BR /&gt;environment:&lt;BR /&gt;DISABLE_PROMETHEUS: "true"&lt;BR /&gt;DISABLE_SYNCSERVICE: "true"&lt;BR /&gt;DISABLE_ADW: "true"&lt;BR /&gt;depends_on:&lt;BR /&gt;- alfresco&lt;BR /&gt;ports:&lt;BR /&gt;- 8080:8080&lt;BR /&gt;links:&lt;BR /&gt;- alfresco&lt;BR /&gt;- share&lt;BR /&gt;volumes:&lt;BR /&gt;volumes/data/alf-repo-data:&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Checkout this post :&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-blog/upgrading-from-alfresco-5-2-installer-to-alfresco-7-0-docker/ba-p/307326" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-blog/upgrading-from-alfresco-5-2-installer-to-alfresco-7-0-docker/ba-p/307326&lt;/A&gt; , It will give you some idea about upgrade if this is something you are looking towards.&lt;/P&gt;
&lt;P&gt;I can see you need to put dir.root properties in JAVA_OPTS, as suggested by&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/4825"&gt;@cristinamr&lt;/A&gt;&amp;nbsp;you can do it just like other properties you can see under the alfresco service.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Syntax:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;JAVA_OPTS: "&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;-D[propertyName]=[propertyVal]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Here is an example, see in bold:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;JAVA_OPTS: "
                &lt;STRONG&gt;-Ddir.root=./alf_data&lt;/STRONG&gt;
		-Ddb.driver=org.postgresql.Driver
		-Ddb.username=alfresco
		-Ddb.password=alfresco
		-Ddb.url=jdbc:postgresql://postgres:5555/alfresco
		-Dsolr.host=solr6
		-Dsolr.port=9999
		-Dsolr.http.connection.timeout=1000
		-Dsolr.secureComms=none
		-Dsolr.base.url=/solr
		-Dindex.subsystem.name=solr6
		-Dshare.host=127.0.0.1
		-Dshare.port=7080
		-Dalfresco.host=localhost
		-Dalfresco.port=7080
		-Daos.baseUrlOverwrite=http://localhost:7080/alfresco/aos
		-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&amp;amp;jms.useCompression=true\"
		-Ddeployment.method=DOCKER_COMPOSE
		-DlocalTransform.core-aio.url=http://transform-core-aio:8090/
		-Dcsrf.filter.enabled=false                
		-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
		"&lt;/PRE&gt;
&lt;P&gt;Second issue is that you seems to be using the bind mount but trying to declare volume in the docker-compose.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This part is wrong at the end of the file:&lt;/P&gt;
&lt;PRE&gt;volumes:
   volumes/data/alf-repo-data:&lt;/PRE&gt;
&lt;P&gt;You don't need that when using bind mount. It is used for named volumes (can be external), and your syntax is also wrong.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;To use bind mount the syntax is like:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;volumes:
          #Bind mount SHORT SYNTAX - [SOURCE:]TARGET[:MODE]
          #SOURCE can be a named volume or a (relative or absolute) path on the host system. 
          #TARGET is an absolute path in the container where the volume is mounted. 
          #MODE is a mount option which can be read-only (ro) or read-write (rw) (default).&lt;BR /&gt;
          # Example: ./data/alf_data:/usr/local/tomcat/alf_data/:rw
&lt;STRONG&gt;          - ./data/alf_data:/usr/local/tomcat/alf_data&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;For named volume syntax is:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;At service level:

&lt;STRONG&gt;volumes:
          - alffresco-volume:/usr/local/tomcat/alf_data&lt;/STRONG&gt;

--------------------------------------------------

At the end of all services:

# Named docker volumes top-level
# Docker compose external named volumes can be used across the Docker installation and 
# they need to be created by the user (otherwise fails) using the docker volume create command.
&lt;STRONG&gt;volumes:
  alffresco-volume:&lt;/STRONG&gt;
    #If not sharing the volume yet, when plan to share volume between services, enable 'external'
    #external: true&lt;/PRE&gt;
&lt;P&gt;For more details read :&amp;nbsp;&lt;A href="https://docs.docker.com/compose/compose-file/compose-file-v2/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.docker.com/compose/compose-file/compose-file-v2/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is an example of docker-compose with the above stated details:&lt;/P&gt;
&lt;PRE&gt;# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
version: "2"

services:
    alfresco:
        image: alfresco/alfresco-content-repository-community:7.0.0
        mem_limit: 1500m
        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
                "
            &lt;STRONG&gt;JAVA_OPTS: "
		-Ddir.root=./alf_data&lt;/STRONG&gt;
                -Ddb.driver=org.postgresql.Driver
                -Ddb.username=alfresco
                -Ddb.password=alfresco
                -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
                -Dsolr.host=solr6
                -Dsolr.port=8983
                -Dsolr.http.connection.timeout=1000
                -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=\"failover:(nio://activemq:61616)?timeout=3000&amp;amp;jms.useCompression=true\"
                -Ddeployment.method=DOCKER_COMPOSE
                -DlocalTransform.core-aio.url=http://transform-core-aio:8090/
                -Dcsrf.filter.enabled=false
                -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
                "
	&lt;STRONG&gt;volumes:
          #Bind mount SHORT SYNTAX - [SOURCE:]TARGET[:MODE]
          #SOURCE can be a named volume or a (relative or absolute) path on the host system. 
          #TARGET is an absolute path in the container where the volume is mounted. 
          #MODE is a mount option which can be read-only (ro) or read-write (rw) (default).
          #Example: ./data/alfresco/alf_data:/usr/local/tomcat/alf_data/:rw
          - ./data/alfresco/alf_data:/usr/local/tomcat/alf_data&lt;/STRONG&gt;

    transform-core-aio:
        image: alfresco/alfresco-transform-core-aio:2.3.10
        mem_limit: 1536m
        environment:
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
        ports:
            - 8090:8090

    share:
        image: alfresco/alfresco-share:7.0.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.1
        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.1
        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
            #HTTP by default
            - ALFRESCO_SECURE_COMMS=none
        ports:
            - 8083:8983 #Browser port

    activemq:
        image: alfresco/alfresco-activemq:5.16.1
        mem_limit: 1g
        ports:
            - 8161:8161 # Web Console
            - 5672:5672 # AMQP
            - 61616:61616 # OpenWire
            - 61613:61613 # STOMP

    proxy:
        image: alfresco/alfresco-acs-nginx:3.1.1
        mem_limit: 128m
        environment:
            DISABLE_PROMETHEUS: "true"
            DISABLE_SYNCSERVICE: "true"
            DISABLE_ADW: "true"
        depends_on:
            - alfresco
        ports:
            - 8080:8080
        links:
            - alfresco
            - share&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Aug 2021 20:15:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122807#M33640</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-05T20:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122808#M33641</link>
      <description>&lt;P&gt;Thank you for all the help but if i forget my admin user and password how do i restet it.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 16:32:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122808#M33641</guid>
      <dc:creator>John1244</dc:creator>
      <dc:date>2021-08-06T16:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122809#M33642</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86744"&gt;@John1244&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for all the help but if i forget my admin user and password how do i restet it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;By default the username is "admin" and password is also "admin" unless you have changed it. If you have changed the password&amp;nbsp; and you have db access, follow the steps outlined here:&amp;nbsp;&lt;A href="http://keytocontent.blogspot.com/2011/09/resetting-forgotten-alfresco-admin.html" target="_blank" rel="noopener nofollow noreferrer"&gt;http://keytocontent.blogspot.com/2011/09/resetting-forgotten-alfresco-admin.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 16:56:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122809#M33642</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-06T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122810#M33643</link>
      <description>&lt;P&gt;Sorry but do u know one for postgreSQL.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 19:41:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122810#M33643</guid>
      <dc:creator>John1244</dc:creator>
      <dc:date>2021-08-09T19:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122811#M33644</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86744"&gt;@John1244&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry but do u know one for postgreSQL.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The queries given in the blogpost should work for any database used for alfresco. Just try running following queries in Postgresql query tool or psql terminal. It should set the password for admin user back to 'admin'.&lt;/P&gt;
&lt;PRE&gt;SELECT anp1.node_id,
       anp1.qname_id,
       anp1.string_value as hash_pass,
       anp2.string_value as user_string
FROM alf_node_properties anp1
        INNER JOIN alf_qname aq1
           ON aq1.id       = anp1.qname_id
        INNER JOIN alf_node_properties anp2 
           ON anp2.node_id = anp1.node_id
        INNER JOIN alf_qname aq2            
           ON aq2.id       = anp2.qname_id
WHERE aq1.local_name    = 'password'
AND aq2.local_name    = 'username';
&lt;/PRE&gt;
&lt;PRE&gt;UPDATE alf_node_properties 
 SET string_value='209c6174da490caeb422f3fa5a7ae634'
 WHERE 
 node_id=4
 and
 qname_id=10&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Aug 2021 21:14:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122811#M33644</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-09T21:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122812#M33645</link>
      <description>&lt;P&gt;If you are not aware on how to connect to postgres docker container, here are the steps:&lt;/P&gt;

&lt;P&gt;1- Open command promot/power shell or terminal (whatever you are using) and type following command:&lt;/P&gt;
&lt;PRE&gt;docker exec -it &amp;lt;nameOrIdOfContainer&amp;gt; /bin/bash

&lt;U&gt;example&lt;/U&gt;:

&lt;STRONG&gt;docker exec -it postgres /bin/bash
&lt;/STRONG&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;docker exec -it 048 /bin/bash &lt;/STRONG&gt;&lt;BR /&gt;
Where name of the container is: postgres&lt;BR /&gt;and container id: &lt;STRONG&gt;048&lt;/STRONG&gt;2bf706a57&lt;/PRE&gt;
&lt;P&gt;If you are not sure how to get the container name of container id, then first execute the following commands before step 1 above:&lt;/P&gt;
&lt;PRE&gt;docker ps &lt;BR /&gt;&lt;BR /&gt;Output example: &lt;BR /&gt;https://hub.alfresco.com/t5/image/serverpage/image-id/1037i5D397466386337DB/image-size/large?v=v2&amp;amp;px=999&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;Based on output look for the container name or id (usually first 3 letters are enough to use).&lt;/P&gt;
&lt;P&gt;2- After connecting to shell, execute the following, this will open the psql terminal for you to execute the sql queries:&lt;/P&gt;
&lt;PRE&gt;root@0482bf706a57:/# psql -U alfresco&lt;/PRE&gt;
&lt;P&gt;3- Execute the queries given above.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 21:25:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122812#M33645</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-09T21:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 7.0, docker compose Trouble with alfresco-global properties and restoring content store</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122813#M33646</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86744"&gt;@John1244&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for accepting this solution - helps other users to know it helped.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 13:08:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-7-0-docker-compose-trouble-with-alfresco-global/m-p/122813#M33646</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-08-10T13:08:53Z</dc:date>
    </item>
  </channel>
</rss>

