latest rubygems has problems
[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 ##
17 ## On 1GB installs set to 128MB (to leave room for other processes)
18 ## on a 4GB instance you may raise to 1GB
19 #db_shared_buffers: "256MB"
20 #
21 ## Set higher on large instances it defaults to 10MB, for a 3GB install 40MB is a good default
22 ## this improves sorting performance, but adds memory usage per-connection
23 #db_work_mem: "40MB"
24 #
25
26 env:
27 # ensure locale exists in container, you may need to install it
28 LANG: en_US.UTF-8
29
30 volumes:
31 - volume:
32 host: /var/discourse/shared/data
33 guest: /shared
34 - volume:
35 host: /var/discourse/shared/data/log/var-log
36 guest: /var/log
37
38 # TODO: SOME_SECRET to a password for the discourse user
39 hooks:
40 after_postgres:
41 - exec:
42 stdin: |
43 alter user discourse with password 'SOME_SECRET';
44 cmd: su - postgres -c 'psql discourse'
45
46 raise_on_fail: false