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.13.template.yml" # NOTE UPDATE THE HOOK REPLACE FOR MAX CONNECTIONS BELOW
7 - "templates/redis.template.yml"
9 # any extra arguments for Docker?
13 ## Set db_shared_buffers to a max of 25% of the total memory.
14 ## will be set automatically by bootstrap based on detected RAM, or you can override
15 db_shared_buffers: "8192MB"
17 ## can improve sorting performance, but adds memory usage per-connection
19 db_max_connections: "200"
22 # ensure locale exists in container, you may need to install it
29 host: /srv/community.openstreetmap.org/shared/data
32 host: /srv/community.openstreetmap.org/shared/data/log/var-log
35 # TODO: SOME_SECRET to a password for the discourse user
40 alter user discourse with password '<%= @passwords["database"] %>';
41 cmd: su - postgres -c 'psql discourse'
45 path: /var/spool/cron/crontabs/postgres
47 # m h dom mon dow command
49 0 4 * * * /var/lib/postgresql/take-database-backup
52 # Make sure this matches the postgresql version template above
54 filename: "/etc/postgresql/13/main/postgresql.conf"
55 from: /#?max_connections *=.*/
56 to: "max_connections = $db_max_connections"