Revert "Remove nginx-common package"
[discourse_docker.git] / samples / data.yml
CommitLineData
e56a65f6
MB
1# A container for all things Data, be sure to set a secret password for
2# discourse account, SOME_SECRET is just an example
80c11be3 3#
e56a65f6 4
67a25ebf 5templates:
67a25ebf
SS
6 - "templates/postgres.template.yml"
7 - "templates/redis.template.yml"
67a25ebf 8
2f9bf9d0
PG
9# any extra arguments for Docker?
10# docker_args:
11
e56a65f6
MB
12params:
13 db_default_text_search_config: "pg_catalog.english"
80a6f24a
S
14
15 ## Set db_shared_buffers to a max of 25% of the total memory.
23c730f0 16 ## will be set automatically by bootstrap based on detected RAM, or you can override
e56a65f6 17 #db_shared_buffers: "256MB"
23c730f0
JP
18
19 ## can improve sorting performance, but adds memory usage per-connection
80a6f24a 20 #db_work_mem: "40MB"
e56a65f6 21
3cb3d9c4
S
22env:
23 # ensure locale exists in container, you may need to install it
24 LANG: en_US.UTF-8
25
67a25ebf
SS
26volumes:
27 - volume:
be82e068 28 host: /var/discourse/shared/data
67a25ebf 29 guest: /shared
be82e068
S
30 - volume:
31 host: /var/discourse/shared/data/log/var-log
32 guest: /var/log
e56a65f6
MB
33
34# TODO: SOME_SECRET to a password for the discourse user
35hooks:
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