1 # A container for all things Data, be sure to set a secret password for
2 # discourse account, SOME_SECRET is just an example
6 - "templates/postgres.template.yml"
7 - "templates/redis.template.yml"
9 # any extra arguments for Docker?
13 db_default_text_search_config: "pg_catalog.english"
15 ## Set db_shared_buffers to a max of 25% of the total memory.
16 ## will be set automatically by bootstrap based on detected RAM, or you can override
17 db_shared_buffers: "4096MB"
19 ## can improve sorting performance, but adds memory usage per-connection
23 # ensure locale exists in container, you may need to install it
30 host: /srv/community.openstreetmap.org/shared/data
33 host: /srv/community.openstreetmap.org/shared/data/log/var-log
36 # TODO: SOME_SECRET to a password for the discourse user
41 alter user discourse with password '<%= @passwords["database"] %>';
42 cmd: su - postgres -c 'psql discourse'
46 path: /var/spool/cron/crontabs/postgres
48 # m h dom mon dow command
50 0 4 * * * /var/lib/postgresql/take-database-backup