Created
December 5, 2023 15:38
-
-
Save froger/3f59ac947456f565ffa3bc6adb2c4d90 to your computer and use it in GitHub Desktop.
Install decidim < 5min.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ################################################# | |
# CONTRIBUTOR; WARNING | |
# This file is generated by the /update-documentation.rb script. | |
# Don't edit it directly. | |
# | |
# @see /update-documentation.rb | |
# @see /templates/quickstart.yml.erb | |
# ################################################# | |
version: '3.3' | |
services: | |
# As example, we use here nginx. | |
# Feel free to use any other proxy, like HaProxy, etc. | |
nginx: | |
container_name: proxy | |
build: | |
dockerfile_inline: | | |
FROM nginx:1.25-alpine | |
ADD https://raw.githubusercontent.com/octree-gva/docker/feat/better-decidim-docker/contrib/nginx/nginx.conf /etc/nginx/nginx.conf | |
networks: | |
- private | |
- default | |
links: | |
- decidim | |
ports: | |
- 8080:8080 | |
decidim: | |
container_name: decidim | |
command: bundle exec rails s -b 0.0.0.0 | |
image: hfroger/decidim:0.26 | |
volumes: | |
- storage:/home/decidim/app/storage | |
- bundle:/home/decidim/app/vendor | |
- public:/home/decidim/app/public | |
- db:/home/decidim/app/db | |
- config:/home/decidim/app/config | |
environment: | |
DECIDIM_SYSTEM_EMAIL: "admin@example.org" | |
DECIDIM_SYSTEM_PASSWORD: "my_insecure_password" | |
DATABASE_URL: "postgres://decidim:my_insecure_password@pg:5432/decidim" | |
RAILS_SERVE_STATIC_FILES: "false" | |
RAILS_FORCE_SSL: "false" | |
SMTP_ADDRESS: "mailer" | |
SMTP_PORT: "25" | |
SMTP_AUTHENTICATION: "none" | |
QUEUE_ADAPTER: "async" | |
depends_on: | |
- pg | |
- mailer | |
links: | |
- pg | |
- mailer | |
networks: | |
- private | |
pg: | |
image: postgres:15-alpine | |
volumes: | |
- pg-data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_PASSWORD: "my_insecure_password" | |
POSTGRES_USER: "decidim" | |
POSTGRES_DB: "decidim" | |
networks: | |
- private | |
mailer: | |
image: tophfr/mailcatcher | |
ports: | |
# SMTP port is 25, webinterface is on 80 | |
- 1080:80 | |
networks: | |
- private | |
- default | |
volumes: | |
pg-data: {} | |
storage: {} | |
bundle: {} | |
public: {} | |
db: {} | |
config: {} | |
networks: | |
private: | |
internal: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment