Revert "Remove nginx-common package"
[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 LANG: en_US.UTF-8
25
26 volumes:
27 - volume:
28 host: /var/discourse/shared/data
29 guest: /shared
30 - volume:
31 host: /var/discourse/shared/data/log/var-log
32 guest: /var/log
33
34 # TODO: SOME_SECRET to a password for the discourse user
35 hooks:
36 after_postgres:
37 - exec:
38 stdin: |
39 alter user discourse with password 'SOME_SECRET';
40 cmd: su - postgres -c 'psql discourse'
41
42 raise_on_fail: false