2ecb61a92773ffa12d5bdedc2d488d5ab1e217ef
[discourse_docker.git] / samples / data.yml
1 # A container for all things Data, be sure to set a secret password for
2 # discourse account, SOME_SECRET is just an example
3 #
4
5 templates:
6 - "templates/postgres.template.yml"
7 - "templates/redis.template.yml"
8
9 # any extra arguments for Docker?
10 # docker_args:
11
12 params:
13 db_default_text_search_config: "pg_catalog.english"
14
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: "256MB"
18
19 ## can improve sorting performance, but adds memory usage per-connection
20 #db_work_mem: "40MB"
21
22 env:
23 # ensure locale exists in container, you may need to install it
24 LC_ALL: en_US.UTF-8
25 LANG: en_US.UTF-8
26 LANGUAGE: en_US.UTF-8
27
28 volumes:
29 - volume:
30 host: /var/discourse/shared/data
31 guest: /shared
32 - volume:
33 host: /var/discourse/shared/data/log/var-log
34 guest: /var/log
35
36 # TODO: SOME_SECRET to a password for the discourse user
37 hooks:
38 after_postgres:
39 - exec:
40 stdin: |
41 alter user discourse with password 'SOME_SECRET';
42 cmd: su - postgres -c 'psql discourse'
43
44 raise_on_fail: false