Decidim on Docker

There’s an image available for a default Decidim app, with core modules. It gets updated with each new version release.

The Dockerfile and a basic docker-compose.yml file are both available on the decidim/docker repo, in case you’d like to use them as starting points for your own customized images and deployments.

Note that the usual requirements for Docker and Rails deployments apply here:

  1. A persistent volume is required for file uploads, logs and any changing, persisted data. Docker images are stateless by design, so they can be easily updated, restarted and replicated.

  2. Rails file uploads are handled by Rails' Active Storage. Their guide will have the ins and outs of configuring file storage on Rails, including delegating it to file storage in the cloud, for example.

For a more elaborate example of docker compose usage, including setting volumes and SSL, among other things, please see the docker-compose.yml for the Decidim instance deployed for the city of Sabadell, in Catalunya.