Public | Automated Build

Last pushed: 7 months ago
Short Description
Alfresco Repo Community Dockerfile
Full Description

Alfresco Community Edition 201702-GA docker image

This images runs a standalone Alfresco Community 201702-GA version


  1. Centos 7
  2. Apache Tomcat 7.0.69
  3. Oracle JDK
  4. PostgreSQL 9.4.4
  5. Alfresco Platform 5.2.f
  6. Alfresco Share 5.2.e
  7. Solr 4.10.3
  8. AOS Module 1.1.5
  9. Aikau (SCM tag)
  10. LibreOffice (Based on image from XCGD)
  11. ImageMagick 6.9.1-10


Manual startup

$ docker run -d --name postgres -e POSTGRES_DB=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_PASSWORD=alfresco postgres:9.4
$ docker run -d --name libreoffice xcgd/libreoffice
$ docker run -it --name alfresco -p 8080:8080 --link postgres:postgres --link libreoffice:libreoffice mikelasla/alfresco-standalone


$ git clone
$ docker-compose up

Addons included

  1. Alfresco JavaScript Console 0.6
  2. Support Tools
  3. Version by name 1.2.0
  4. Share Site Creators 0.0.3
  5. Uploader Plus 1.5.1

Alfresco 5.2 REST API explorer

Check this page for reference on new Alfresco 5.2 REST API

Alfresco 5.2 REST API Reference community DOC

Thanks to Gavin Cornwell for a great job documenting this new Alfresco functionality



Docker Pull Command
Source Repository

Comments (12)
a month ago

Hello! Thanks for putting this together!

I tried to run just now and got a 404 from Oracle on the JDK download. The error is at the end of this comment.

2 questions for you:

  1. Do we really need a JDK, or is a JRE sufficient?
  2. Regardless, have you tried this with OpenJDK? It does seem like this would be easier than getting the RPM from Oracle via script.


a year ago

Hi dooku,
Thanks for the feedback!

The first error looks like a database connection configuration issue. Check that the properties in alfresco/assets/alfresco/ match those passed to postgres container environment variables. Also you could map postgres container 5432 port to your host and validate your config connecting to the database with psql.

For the docker-compose related error, check your Docker Engine and Docker Compose versions, docker-compose version 2 is supported from docker-compose 1.6.0+ and it requires Docker Engine 1.10.0+


a year ago

Hi mikelasla,
thanks for sharing this image. When I pull and run the image it works but when I try with the manual startup I get some errors, e.g.:
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The connection attempt failed.)
and with docker-compose:
ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.
Any ideas?
I would simply run your build but FTP, CIFS, https are deactivated and no video thumbnails are generated.
Best regards

2 years ago

Hi Marius

You could do that in several ways, the easiest one would be to adpat the server.xml to your needs and then rebuild the image. Another solution, without modifing this image, will be to use Apache Http Server (or Nginx), obviously.

Here an example vhost with Apache httpd server 2.4 i've used many times

<VirtualHost *:80>
        ServerName yourservername

        RewriteEngine on
        RewriteCond %{HTTPS} !=on
        RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]


<VirtualHost *:443>
        ServerName yourservername

        SSLEngine on
        SSLCertificateFile /usr/local/apache2/conf/server.crt
        SSLCertificateKeyFile /usr/local/apache2/conf/server.key

        ProxyRequests Off
        ProxyPreserveHost Off
        <Proxy *>
                Require all granted
        ProxyPass / ajp://localhost:8009/
        ProxyPassReverse / ajp://localhost:8009/


Finally if you keep with CSRF errors, it may be helpfull for you to read Alfresco Share's Security policies and filters documentation.

2 years ago

Is there a way to use this container with https ?
I get an error "Possible CSRF attack noted when asserting ...."

Thank you and best regards,

2 years ago

Hi zkydiver,
You can use any libreoffice instance you like, also a docker image. just edit to point to right host and port.

2 years ago

Hi saschaholweg!
Sorry, away for vacations

Default login is "admin" / "admin" so if that's not working for you, you may have an issue within the startup process, have you check your logs?

2 years ago

i just started the container and it is working.
But how can i login?
What are the admin user data?
Thank you and best regards,

2 years ago

Thanks for the feedback zkydiver, i'll try to improve it, adding libreoffice, javacript-console addon and other things i got in mind we allways need in a fresh install

2 years ago

updated Readme, Thanks steghe for pointing that out!