We offer the Docker image zotonic/zotonic-dev which contains build tools and Erlang.
It can be used for development work on Zotonic itself, where you’ll mount your Zotonic directory as a volume in the container.
To use this image, first download and install Docker.
You can use the zotonic/zotonic-dev image for doing development work on Zotonic and Zotonic sites.
Start the container from your local Zotonic clone:
$ git clone https://github.com/zotonic/zotonic.git
Start the container:
$ cd zotonic
This uses Docker Compose to start the Zotonic container and a PostgreSQL container.
On first start Zotonic will be compiled and all dependencies are fetched. This can take quite some time if you are not running on Linux (Docker’s file i/o is quite inefficient on non-Linux platforms).
A shell prompt will appear after the build is complete. Now Zotonic can be started:
bash-4.4$ bin/zotonic debug
You can stop Zotonic (Erlang) by typing Ctrl+C twice.
The configuration, including the Zotonic status site password, can be found with:
bash-4.4$ bin/zotonic config
Zotonic’s port 8443 and 8000 are exposed as local ports. You can view the
Zotonic status page at
You can log in using the username wwwadmin and the password from the config.
All configurarions, logs and site data used in the container are stored in the
Zotonic is running with a self-signed certificate. The certificate can be found
You can also run other commands in the container, such as running the tests:
$ bin/zotonic runtests
Any changes you make in the Zotonic source files will be propagated to the container and automatically compiled.
You can stop the container using Ctrl+D at the Bash shell prompt.
docker-data/configThe Zotonic and Erlang configuration files
docker-data/securityCertificates used by Zotonic and sites
docker-data/logsAll log files
docker-data/dataSite data and mnesia files
_buildAll compiled files