<?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: Share wont start becasue of same port in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/share-wont-start-becasue-of-same-port/m-p/142092#M37845</link>
    <description>&lt;P&gt;By default, docker compose runs two separate docker images for share and acs, so you get two tomcats running and need different ports for them.&lt;/P&gt;&lt;P&gt;You will need to build your own docker image with share and acs wars deployed to the same tomcat if you want it that way.&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 21:26:26 GMT</pubDate>
    <dc:creator>sufo</dc:creator>
    <dc:date>2021-05-03T21:26:26Z</dc:date>
    <item>
      <title>Share wont start becasue of same port</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-wont-start-becasue-of-same-port/m-p/142090#M37843</link>
      <description>&lt;P&gt;I am trying to docker compose ACS and share.&amp;nbsp; The ACS comes up fine if I run it individually.&amp;nbsp; but when I add Share to my docker compose file,&amp;nbsp; I get this error:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Removing docker_alfresco-share_1
Starting docker_alfresco-acs_1 ... 
Recreating c52757e9921c_docker_alfresco-share_1 ... 
Recreating c52757e9921c_docker_alfresco-share_1 ... error

Starting docker_alfresco-acs_1                  ... done
r 0.0.0.0:8888 failed: port is already allocated

ERROR: for alfresco-share  Cannot start service alfresco-share: driver failed programming external connectivity on endpoint docker_alfresco-share_1 (e7b5bb2dd1cba3372581e3e43438a46c63ff5c81554087995ef3fb88167a4e82): Bind for 0.0.0.0:8888 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.&lt;/PRE&gt;&lt;P&gt;Here is my docker-compose.yml&lt;/P&gt;&lt;PRE&gt;version: '3.4'
services:
  alfresco-share:
    image: my.share:7.0.0
    environment:
      CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888"
      REPO_HOST: alfresco-acs
      REPO_PORT: 8080
    ports:
      - "8080:8080"
      - "8888:8888"
  alfresco-acs:
    image: my.alfresco:7.0.0
    environment:
      JAVA_TOOL_OPTIONS: "-Dencryption.keystore.type=JCEKS
            -Dencryption.cipherAlgorithm=AES/CBC/PKCS5Padding
            -Dencryption.keyAlgorithm=AES
            -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=AES"
      CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888"
    ports:
      - "8080:8080"
      - "8888:8888"
    volumes:
      - alfresco-acs-volume:/usr/local/tomcat/alf_data
volumes:
  alfresco-acs-volume:
    external: true&lt;/PRE&gt;&lt;P&gt;How do I tell it to use the same tomcat and the same port?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 03:35:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-wont-start-becasue-of-same-port/m-p/142090#M37843</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2021-04-29T03:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Share wont start becasue of same port</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-wont-start-becasue-of-same-port/m-p/142091#M37844</link>
      <description>&lt;P&gt;You can't publish the same port for acs and share in docker. You should change your share ports to:&lt;/P&gt;&lt;P&gt;"8180:8080"&lt;/P&gt;&lt;P&gt;"8889:8888"&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 06:06:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-wont-start-becasue-of-same-port/m-p/142091#M37844</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2021-04-29T06:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Share wont start becasue of same port</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-wont-start-becasue-of-same-port/m-p/142092#M37845</link>
      <description>&lt;P&gt;By default, docker compose runs two separate docker images for share and acs, so you get two tomcats running and need different ports for them.&lt;/P&gt;&lt;P&gt;You will need to build your own docker image with share and acs wars deployed to the same tomcat if you want it that way.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 21:26:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-wont-start-becasue-of-same-port/m-p/142092#M37845</guid>
      <dc:creator>sufo</dc:creator>
      <dc:date>2021-05-03T21:26:26Z</dc:date>
    </item>
  </channel>
</rss>

