FEATURE: allow tweaking more pg setup options
[discourse_docker.git] / samples / data.yml
1 # A container for all things Data, be sure to set a secret password for discourse account, SOME_SECRET is just an example
2 #
3 templates:
4 - "templates/cron.template.yml"
5 - "templates/syslog.template.yml"
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 env:
16 # ensure locale exists in container, you may need to install it
17 LANG: en_US.UTF-8
18
19 params:
20 db_default_text_search_config: "pb_catelog.english"
21 ## Set db_shared_buffers to 1/3 of the memory you wish to allocate to postgres
22 ## on 1GB install set to 128MB on a 4GB instance you may raise to 1GB
23 # db_shared_buffers: "256MB"
24
25 # amend SOME_SECRET to a password for the discourse user
26 hooks:
27 after_postgres:
28 - exec:
29 stdin: |
30 alter user discourse with password 'SOME_SECRET';
31 cmd: sudo -u postgres psql discourse
32 raise_on_fail: false
33 # be sure to set the host location somewhere sane
34 volumes:
35 - volume:
36 host: /var/docker/shared
37 guest: /shared