cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco docker share port change

Dushan
Champ on-the-rise
Champ on-the-rise

Hi, I'm using Alfresco 6.1 Docker. I want to change the share from 8080 to some other port. I tried to change it and when i go to share link, it still go to http://localhost:8080/share link. Can someone please give complete steps to change my 8080 share port to something else. 


Thank you.

1 ACCEPTED ANSWER

abhinavmishra14
World-Class Innovator
World-Class Innovator

In your docker-compose.yml file, update the "share.port" global property found under "alfresco" service definition. For example i need share port as : 8081

imagealfresco docker-compose service definition

Look for "share" service definition:

imageshare service definition docker-compose

Add "ports" config under share service definition:

image

Once done with updating docker-compose.yml file, stop all containers: docker-compose down

After containers are stopped, run command as : docker-compose build --no-cache 

At last, start the containers again: docker-compose up

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

4 REPLIES 4

abhinavmishra14
World-Class Innovator
World-Class Innovator

Update the pom (it would be parent pom if you have generated AIO project structure using SKD4) file containing below highlighted property.

<!-- Environment configuration properties -->
<share.port>8180</share.port>
<share.debug.port>9898</share.debug.port>
<acs.host>about-share-and-adminconsole-extension-acs</acs.host>
<acs.port>8080</acs.port>
<acs.debug.port>8888</acs.debug.port>
<postgres.port>5555</postgres.port>

Update the alfresco-global.properties which is part of platform-docker project:

# Alfresco Share Webapp (share.war) context, ports etc
share.context=share
share.host=localhost
share.port=8180
share.protocol=http

Just to double check, verify the docker-compose.yml file and make sure share service definition is poining to share.port

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

hi, thank you for replying so quickly. I went through your answer. But i only have docker file which contains docker compose file. I tried to change ports from docker-compose.yml file and it is still opening share in the port --> http://localhost:8080/share .

abhinavmishra14
World-Class Innovator
World-Class Innovator

In your docker-compose.yml file, update the "share.port" global property found under "alfresco" service definition. For example i need share port as : 8081

imagealfresco docker-compose service definition

Look for "share" service definition:

imageshare service definition docker-compose

Add "ports" config under share service definition:

image

Once done with updating docker-compose.yml file, stop all containers: docker-compose down

After containers are stopped, run command as : docker-compose build --no-cache 

At last, start the containers again: docker-compose up

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

this worked, Thank you so much for the help. Much appreciated..