{"id":30706021,"url":"https://github.com/larueli/decidim-nonroot","last_synced_at":"2025-09-02T19:56:23.962Z","repository":{"id":56289813,"uuid":"225935211","full_name":"larueli/decidim-nonroot","owner":"larueli","description":"Decidim container - nonroot / suitable for OpenShift, all decidim modules installed + initatives, conferences consultations","archived":false,"fork":false,"pushed_at":"2021-11-26T08:40:45.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-05-25T23:20:32.030Z","etag":null,"topics":["container","decidim","democracy","docker","hacktoberfest","kubernetes","nginx","oauth2","okd","openshift","smtp","ssl"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/larueli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-04T18:49:41.000Z","updated_at":"2023-05-25T23:20:32.030Z","dependencies_parsed_at":"2022-08-15T16:01:11.123Z","dependency_job_id":null,"html_url":"https://github.com/larueli/decidim-nonroot","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/larueli/decidim-nonroot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larueli%2Fdecidim-nonroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larueli%2Fdecidim-nonroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larueli%2Fdecidim-nonroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larueli%2Fdecidim-nonroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larueli","download_url":"https://codeload.github.com/larueli/decidim-nonroot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larueli%2Fdecidim-nonroot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273341436,"owners_count":25088347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container","decidim","democracy","docker","hacktoberfest","kubernetes","nginx","oauth2","okd","openshift","smtp","ssl"],"created_at":"2025-09-02T19:56:01.575Z","updated_at":"2025-09-02T19:56:23.955Z","avatar_url":"https://github.com/larueli.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/larueli/decidim-nonroot/actions/workflows/main.yml/badge.svg)](https://github.com/larueli/decidim-nonroot/actions/workflows/main.yml)\r\n\r\n# Decidim on Docker\r\n\r\nYou'll find here the files used to build my Docker image for [decidim, free Open-Source participatory democracy for cities and organizations](https://decidim.org).\r\n\r\n## Features\r\n\r\n* All official decidim modules installed\r\n\u003e including optional _decidim-consultations_ and _decidim-initiatives_ and _decidim-conferences_\r\n* Able to run as non root user (must be root group), so works in OKD/OpenShift\r\n* Latest decidim version (check tags)\r\n* Various omniauth strategies added (facebook, twitter, twitter, keycloak, openid, saml)\r\n* Ability to run your init scripts before starting the server\r\n* Bundled with [docker-compose-wait](https://github.com/ufoscout/docker-compose-wait) which allow to wait for db to start\r\n\r\n## How does it work ?\r\n\r\nYou can use the provided docker-compose.yml file to see how the container works. Make sure to set the env var `RAILS_SERVE_STATIC_FILES` to `true` and the `RAILS_ENV` to `production` !\r\n\r\nThis image exposes port 3000 (no ssl, you have to provide SSL by yourself with a reverse proxy), and has two volumes `/decidim-app/config` and `/decidim-app/public/uploads`. You can simply edit your config inside your container and restart it in order to take effect.\r\n\r\nYou can put your scripts with a volume mounted on `/docker-entrypoint-initdecidim.d`\r\n\r\n## After deployment\r\n\r\n1. You can create an admin from the terminal\r\n\r\n```\r\nbin/rails console\r\n\u003e email = \"test@email.com\"\r\n\u003e password = \"mystrongpassword\"\r\n\u003e user = Decidim::System::Admin.new(email: email, password: password, password_confirmation: password)\r\n\u003e user.save!\r\n```\r\n\r\n2. You can configure it as you wish ! The decidim doc about [installation](https://docs.decidim.org/en/install/) and [configuration](https://docs.decidim.org/en/configure/) is very complete.\r\n\r\n## FAQ\r\n\r\n### ERROR Access denied at boot of container\r\n\r\nMake sure all the config volume of decidim is owned by the user running in the container (`10520` in the docker-compose example). To be sure, run\r\n```\r\nsudo chown -R 10520 /var/lib/docker/volumes/decidim-nonroot_decidim-config/_data\r\n```\r\n\r\n### I don't have any assets (css, js, ...) served !\r\n\r\nMake sure the decidim container has the env var `RAILS_SERVE_STATIC_FILES` set to `true` and the `RAILS_ENV` set to `production`\r\n\r\n## More info about the image\r\n\r\nYou can check [my DockerHub repo](https://hub.docker.com/repository/docker/larueli/decidim-nonroot).\r\n\r\n# Author\r\n\r\nI am [Ivann LARUELLE](https://www.linkedin.com/in/ilaruelle/), engineering student in Networks \u0026 Telecommunications at the [Université de Technologie de Troyes](https://www.utt.fr/) in France, which is a public engineering university.\r\n\r\nThis tool was made for the students, as I am a student representative, and in collaboration with the UTT Net Group, an non profit organization which aims to [provide IT Service](https://ung.utt.fr/tech/sia) to all UTT students and student organizations.\r\n\r\nContact me for any issue : ivann[at]laruelle.me\r\n\r\n# Licence\r\n\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarueli%2Fdecidim-nonroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarueli%2Fdecidim-nonroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarueli%2Fdecidim-nonroot/lists"}