Bump base image (#538)
[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
a4b6986b 24 LC_ALL: en_US.UTF-8
3cb3d9c4 25 LANG: en_US.UTF-8
a4b6986b 26 LANGUAGE: en_US.UTF-8
3cb3d9c4 27
67a25ebf
SS
28volumes:
29 - volume:
be82e068 30 host: /var/discourse/shared/data
67a25ebf 31 guest: /shared
be82e068
S
32 - volume:
33 host: /var/discourse/shared/data/log/var-log
34 guest: /var/log
e56a65f6
MB
35
36# TODO: SOME_SECRET to a password for the discourse user
37hooks:
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