11-21-2019 07:20 AM
Good day
I would like to ask for your help, to know how I can enable the FTP service in alfresco, it is implemented in Docker and the version is the one discussed in the subject.
Community - 6.1.2 (r589dc49b-b205)
Thank you so much
11-21-2019 07:30 AM
Typically, adding these properties in alfresco-global.properties should allow you to use ftp.
ftp.enabled=true
ftp.port=21
You need to make sure the configured port is open for access. Configure docker-compose file to allow port access
ports:
- "21:21"
Apart from the above properties there are few more settings if you have advance requirements. You can refer this documentation for details: https://docs.alfresco.com/6.1/concepts/fileserv-ftp-intro.html
11-21-2019 09:34 AM
Hi abhinavmishra14
Thanks for answering.
I am reviewing the documentation, but they talk about the admin console, but is this only for the enterprise version?
additionally I see a configuration for the docker-compose.yml file but I have not been able to make it work.
I attach my file to see if I am doing it wrong
Thank you so much
docker-compose.yml
version: "2"
services:
alfresco:
image: alfresco/alfresco-content-repository-community:6.1.2-ga
mem_limit: 1500m
environment:
JAVA_OPTS : "
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbcostgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=localhost
-Dalfresco.port=8082
-Daos.baseUrlOverwrite=http://localhost:8082/alfresco/aos
-Dmessaging.broker.url=\"failovernio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-Ddeployment.method=DOCKER_COMPOSE
-Dcsrf.filter.enabled=false
-Xms1g -Xmx1g
"
ports:
- 8082:8080 #Browser port
- 21:21 #FTP port
share:
image: alfresco/alfresco-share:6.1.0-RC3
mem_limit: 1g
environment:
- REPO_HOST=alfresco
- REPO_PORT=8080
- "CATALINA_OPTS= -Xms500m -Xmx500m"
ports:
- 8080:8080
postgres:
image: postgres:10.1
mem_limit: 1500m
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:1.3.0-RC2
mem_limit: 2500m
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
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8083:8983 #Browser port
activemq:
image: alfresco/alfresco-activemq:5.15.6
mem_limit: 2048m
ports:
- 8161:8161 # Web Console
- 5672:5672 # AMQP
- 61616:61616 # OpenWire
- 61613:61613 # STOMP
11-21-2019 10:13 AM
In JAVA_OPTS add the properties i mentioned earlier and see if that works. See highlighted. I don't see anything related to admin console here: https://docs.alfresco.com/6.1/concepts/fileserv-ftp-props.html
However, when you go to admin console, it will just show whether ftp is enabled or disabled.
------------------------------------------------------------------------------------------
JAVA_OPTS : " -Ddb.driver=org.postgresql.Driver -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.url=jdbcostgresql://postgres:5432/alfresco -Dsolr.host=solr6 -Dsolr.port=8983 -Dsolr.secureComms=none -Dsolr.base.url=/solr -Dindex.subsystem.name=solr6 -Dshare.host=localhost -Dalfresco.port=8082 -Dftp.enabled=true -Dftp.port=21 -Daos.baseUrlOverwrite=http://localhost:8082/alfresco/aos -Dmessaging.broker.url=\"failovernio://activemq:61616)?timeout=3000&jms.useCompression=true\" -Ddeployment.method=DOCKER_COMPOSE -Dcsrf.filter.enabled=false -Xms1g -Xmx1g "
11-21-2019 10:15 AM
yes, and give it a try:
FTP just works like a charm, I just added this in JAVA_OPTS of docker-compose.yml:
-Dftp.enabled=true
-Dftp.port=2121
added port to alfresco service:
edited alfresco/Dockerfile and added this line at the bottom:
EXPOSE 2121
Use ACTIVE communication mode in the client in order to connect to Alfresco (port 21)
Explore our Alfresco products with the links below. Use labels to filter content by product module.