alfresco docker share port change

cancel
Showing results for 
Search instead for 
Did you mean: 
Dushan
Active Member

alfresco docker share port change

Jump to solution

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 Solution

Accepted Solutions
abhinavmishra14
Advanced

Re: alfresco docker share port change

Jump to solution

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

alfresco docker-compose service definitionalfresco docker-compose service definition

Look for "share" service definition:

share service definition docker-composeshare service definition docker-compose

Add "ports" config under share service definition:

share-service-def-docker-compose-custom-port.PNG

 

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 solution in original post

4 Replies
abhinavmishra14
Advanced

Re: alfresco docker share port change

Jump to solution

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)
Dushan
Active Member

Re: alfresco docker share port change

Jump to solution
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
Advanced

Re: alfresco docker share port change

Jump to solution

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

alfresco docker-compose service definitionalfresco docker-compose service definition

Look for "share" service definition:

share service definition docker-composeshare service definition docker-compose

Add "ports" config under share service definition:

share-service-def-docker-compose-custom-port.PNG

 

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)
Dushan
Active Member

Re: alfresco docker share port change

Jump to solution

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