Alfresco Community with MySQL, LDAP & Rancher support
10K+
Alfresco is a leading Enterprise Content Management system which provides document management, collaboration, web content services and records and knowledge management.
This image aims to help you run the latest version of the Alfresco Community Edition in a Docker container.
Run the alfresco image:
docker run --name='alfresco' -it --rm -p 8080:8080 rsippl/alfresco
NOTE: Please allow a few minutes for the application to start, especially if populating the database for the first time. If you want to make sure that everything went fine, watch the log:
docker exec -it alfresco /bin/bash
tail -f /alfresco/tomcat/logs/catalina.out
Go to http://localhost:8080/share or point to the IP of your docker host. On
Mac or Windows, replace localhost with the IP address of your Docker host which you can get using
docker-machine ip default
The default username and password are:
If you use this image in production, you'll probably want to store files and database separately in an external location. Use the CONTENT_STORE environment variable to set the content store to a bind-mounted volume or a network share.
If DB_KIND is postgresql and the DB_HOST environment variable is not set (or localhost),
then the internal PostgreSQL server will be started and used.
By setting DB_KIND to mysql, you can use an external MySQL server, e.g. one running in a Docker container:
docker run --name 'mysql' -d -p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=secret \
-e MYSQL_DATABASE=alfresco \
-e MYSQL_USER=alfresco \
-e MYSQL_PASSWORD=secret \
mysql \
--character-set-server=utf8 \
--collation-server=utf8_general_ci \
--max_connections=1024
Configure the Alfresco container to use this MySQL server as database and a bind-mounted volume as content store:
docker run --name='alfresco' -d -p 8080:8080 \
-v /mnt/alfresco_content_store:/mnt/content_store \
-e CONTENT_STORE=/mnt/content_store \
-e DB_KIND=mysql \
-e DB_HOST=mysql \
-e DB_PASSWORD=secret \
--link mysql:mysql \
rsippl/alfresco
Below is the complete list of currently available parameters that can be set using environment variables.
localhostlocalhost${dir.root} (/alfresco/alf_data)postgresqlalfrescoadminalfrescolocalhost?useSSL=false, otherwise empty5432truelocalhostWORKGROUPfalsefalseldapuid=%s,cn=users,cn=accounts,dc=example,dc=comldap://ldap.example.com:389adminuid=admin,cn=users,cn=accounts,dc=example,dc=compasswordcn=groups,cn=accounts,dc=example,dc=comcn=users,cn=accounts,dc=example,dc=comThe source code is available at https://github.com/rsippl/docker-alfresco.
Make sure your Docker host has more than 2 GB RAM available. Docker Hub uses 2 GB for automated builds which is not enough, the Alfresco installer will complain and fail. The Docker Toolbox VM also uses 2 GB by default, use VirtualBox to change it to at least 4GB.
git clone https://github.com/rsippl/docker-alfresco.git
cd docker-alfresco
docker build --tag="$USER/alfresco" .
Content type
Image
Digest
Size
843.6 MB
Last updated
over 10 years ago
docker pull rsippl/alfresco