Big cleanup of discourse docker environment
[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 - "templates/sshd.template.yml"
9
10 expose:
11 - "5432:5432"
12 - "6379:6379"
13 - "2221:22"
14
15 params:
16 db_default_text_search_config: "pg_catalog.english"
17 ## Set db_shared_buffers to 1/3 of the memory you wish to allocate to postgres
18 ## on 1GB install set to 128MB on a 4GB instance you may raise to 1GB
19 #db_shared_buffers: "256MB"
20
21 env:
22 # ensure locale exists in container, you may need to install it
23 LANG: en_US.UTF-8
24
25 volumes:
26 - volume:
27 host: /var/discourse/shared/data
28 guest: /shared
29 - volume:
30 host: /var/discourse/shared/data/log/var-log
31 guest: /var/log
32
33 # TODO: SOME_SECRET to a password for the discourse user
34 hooks:
35 after_postgres:
36 - exec:
37 stdin: |
38 alter user discourse with password 'SOME_SECRET';
39 cmd: su - postgres -c 'psql discourse'
40
41 raise_on_fail: false