<?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: Tomcat server with installation by Docker in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/tomcat-server-with-installation-by-docker/m-p/117020#M32404</link>
    <description>&lt;P&gt;If i can understand correctly, you want to add SMTP configuration for Outbound/Inbound emails.&lt;/P&gt;
&lt;P&gt;You dont need tomcat. ACS images has built-in tomcat and you can find the alfresco-global.properties files located in $TOMCAT_HOME/share/classes/ directory. If you have used docker-compose.yml to start acs containers, you can simply update the docker-compose.yml. you need to update the ACS service difinition and add smtp config properties under JAVA_OPTS and restart the containers again. Make sure ports are open to connect to SMTP server.&lt;/P&gt;

&lt;P&gt;&lt;U&gt;example:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;version: "2"

services:
    alfresco:
        image: alfresco/alfresco-content-repository-community:6.2.0-ea
        mem_limit: 1500m
        environment:
            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=8983
                -Dsolr.secureComms=none
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=127.0.0.1
                -Dshare.port=8081
                -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
                -Dlocal.transform.service.enabled=true
                -DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/
                -DlocalTransform.imagemagick.url=http://imagemagick:8090/
                -DlocalTransform.libreoffice.url=http://libreoffice:8090/
                -DlocalTransform.tika.url=http://tika:8090/
                -DlocalTransform.misc.url=http://transform-misc:8090/
                -Dlegacy.transform.service.enabled=true
                -Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/
                -Djodconverter.url=http://libreoffice:8090/
                -Dimg.url=http://imagemagick:8090/
                -Dtika.url=http://tika:8090/
                -Dtransform.misc.url=http://transform-misc:8090/
                -Dcsrf.filter.enabled=false
                -Dftp.enabled=true
                -Dftp.port=21
		&lt;STRONG&gt;-Dmail.host=127.0.0.1 #example host. use appropriate host as per your current setup
                -Dmail.port=21 #example port. use appropriate port as per your current setup
		-Dmail.encoding=UTF-8
                -Dmail.from.default=local@yourorg.com&lt;/STRONG&gt;
                -Xms1500m -Xmx1500m
                "
    
&lt;/PRE&gt;
&lt;P&gt;Refer this doc:&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.2/concepts/email-outboundsmtp-props.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/email-outboundsmtp-props.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Similarly you can setup inbound properties as well.&lt;/P&gt;
&lt;P&gt;If you are running a test environment and don't have SMTP server then you can also try adding this to your docker compose file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#SMTP service&lt;BR /&gt;smtp:
   image: mwader/postfix-relay&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://hub.docker.com/r/mwader/postfix-relay" target="_blank" rel="nofollow noopener noreferrer"&gt;See details here: https://hub.docker.com/r/mwader/postfix-relay&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;version: "2"
services:
    alfresco:
        image: alfresco/alfresco-content-repository-community:6.2.0-ea
        mem_limit: 1500m
        environment:
            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=8983
                -Dsolr.secureComms=none
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=127.0.0.1
                -Dshare.port=8081
                -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
                -Dlocal.transform.service.enabled=true
                -DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/
                -DlocalTransform.imagemagick.url=http://imagemagick:8090/
                -DlocalTransform.libreoffice.url=http://libreoffice:8090/
                -DlocalTransform.tika.url=http://tika:8090/
                -DlocalTransform.misc.url=http://transform-misc:8090/
                -Dlegacy.transform.service.enabled=true
                -Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/
                -Djodconverter.url=http://libreoffice:8090/
                -Dimg.url=http://imagemagick:8090/
                -Dtika.url=http://tika:8090/
                -Dtransform.misc.url=http://transform-misc:8090/
                -Dcsrf.filter.enabled=false
                -Dftp.enabled=true
                -Dftp.port=21				
		&lt;STRONG&gt;-Dmail.host=smtp
		-Dmail.port=25 
		-Dmail.username=anonymous 
		-Dmail.password=
		-Dmail.protocol=smtp 
		-Dmail.smtps.starttls.enable=false 
		-Dmail.smtps.auth=false&lt;/STRONG&gt;
                -Xms1500m -Xmx1500m
                "
        ports:
            - 21:21 #FTP Server

    #SMTP service
	smtp:
	   image: mwader/postfix-relay&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Feb 2020 21:07:48 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2020-02-10T21:07:48Z</dc:date>
    <item>
      <title>Tomcat server with installation by Docker</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tomcat-server-with-installation-by-docker/m-p/117019#M32403</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I recently did an installation of Alfresco Community Edition on Windows Server 2019 with Docker Desktop (because of the compatibility of the Alfresco images which doesn't run on Windows but on Linux).&lt;/P&gt;&lt;P&gt;I used the "docker-compose.yml" file. But now that I want to configure the mails, I have to use the "alfresco-global.properties" file and I noticed that I need Tomcat with it, because I don't have this file, is there a way to put Tomcat in the "docker-compose.yml" file? or should I launch it next to it? How to do it ?&lt;/P&gt;&lt;P&gt;Excuse me, I'm new in this field.&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 16:37:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tomcat-server-with-installation-by-docker/m-p/117019#M32403</guid>
      <dc:creator />
      <dc:date>2020-02-10T16:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tomcat server with installation by Docker</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tomcat-server-with-installation-by-docker/m-p/117020#M32404</link>
      <description>&lt;P&gt;If i can understand correctly, you want to add SMTP configuration for Outbound/Inbound emails.&lt;/P&gt;
&lt;P&gt;You dont need tomcat. ACS images has built-in tomcat and you can find the alfresco-global.properties files located in $TOMCAT_HOME/share/classes/ directory. If you have used docker-compose.yml to start acs containers, you can simply update the docker-compose.yml. you need to update the ACS service difinition and add smtp config properties under JAVA_OPTS and restart the containers again. Make sure ports are open to connect to SMTP server.&lt;/P&gt;

&lt;P&gt;&lt;U&gt;example:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;version: "2"

services:
    alfresco:
        image: alfresco/alfresco-content-repository-community:6.2.0-ea
        mem_limit: 1500m
        environment:
            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=8983
                -Dsolr.secureComms=none
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=127.0.0.1
                -Dshare.port=8081
                -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
                -Dlocal.transform.service.enabled=true
                -DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/
                -DlocalTransform.imagemagick.url=http://imagemagick:8090/
                -DlocalTransform.libreoffice.url=http://libreoffice:8090/
                -DlocalTransform.tika.url=http://tika:8090/
                -DlocalTransform.misc.url=http://transform-misc:8090/
                -Dlegacy.transform.service.enabled=true
                -Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/
                -Djodconverter.url=http://libreoffice:8090/
                -Dimg.url=http://imagemagick:8090/
                -Dtika.url=http://tika:8090/
                -Dtransform.misc.url=http://transform-misc:8090/
                -Dcsrf.filter.enabled=false
                -Dftp.enabled=true
                -Dftp.port=21
		&lt;STRONG&gt;-Dmail.host=127.0.0.1 #example host. use appropriate host as per your current setup
                -Dmail.port=21 #example port. use appropriate port as per your current setup
		-Dmail.encoding=UTF-8
                -Dmail.from.default=local@yourorg.com&lt;/STRONG&gt;
                -Xms1500m -Xmx1500m
                "
    
&lt;/PRE&gt;
&lt;P&gt;Refer this doc:&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.2/concepts/email-outboundsmtp-props.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/email-outboundsmtp-props.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Similarly you can setup inbound properties as well.&lt;/P&gt;
&lt;P&gt;If you are running a test environment and don't have SMTP server then you can also try adding this to your docker compose file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#SMTP service&lt;BR /&gt;smtp:
   image: mwader/postfix-relay&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://hub.docker.com/r/mwader/postfix-relay" target="_blank" rel="nofollow noopener noreferrer"&gt;See details here: https://hub.docker.com/r/mwader/postfix-relay&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;version: "2"
services:
    alfresco:
        image: alfresco/alfresco-content-repository-community:6.2.0-ea
        mem_limit: 1500m
        environment:
            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=8983
                -Dsolr.secureComms=none
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=127.0.0.1
                -Dshare.port=8081
                -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
                -Dlocal.transform.service.enabled=true
                -DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/
                -DlocalTransform.imagemagick.url=http://imagemagick:8090/
                -DlocalTransform.libreoffice.url=http://libreoffice:8090/
                -DlocalTransform.tika.url=http://tika:8090/
                -DlocalTransform.misc.url=http://transform-misc:8090/
                -Dlegacy.transform.service.enabled=true
                -Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/
                -Djodconverter.url=http://libreoffice:8090/
                -Dimg.url=http://imagemagick:8090/
                -Dtika.url=http://tika:8090/
                -Dtransform.misc.url=http://transform-misc:8090/
                -Dcsrf.filter.enabled=false
                -Dftp.enabled=true
                -Dftp.port=21				
		&lt;STRONG&gt;-Dmail.host=smtp
		-Dmail.port=25 
		-Dmail.username=anonymous 
		-Dmail.password=
		-Dmail.protocol=smtp 
		-Dmail.smtps.starttls.enable=false 
		-Dmail.smtps.auth=false&lt;/STRONG&gt;
                -Xms1500m -Xmx1500m
                "
        ports:
            - 21:21 #FTP Server

    #SMTP service
	smtp:
	   image: mwader/postfix-relay&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Feb 2020 21:07:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tomcat-server-with-installation-by-docker/m-p/117020#M32404</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-02-10T21:07:48Z</dc:date>
    </item>
  </channel>
</rss>

