Big cleanup of discourse docker environment
[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"
8 - "templates/sshd.template.yml"
9
10expose:
11 - "5432:5432"
12 - "6379:6379"
13 - "2221:22"
14
e56a65f6
MB
15params:
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
3cb3d9c4
S
21env:
22 # ensure locale exists in container, you may need to install it
23 LANG: en_US.UTF-8
24
67a25ebf
SS
25volumes:
26 - volume:
be82e068 27 host: /var/discourse/shared/data
67a25ebf 28 guest: /shared
be82e068
S
29 - volume:
30 host: /var/discourse/shared/data/log/var-log
31 guest: /var/log
e56a65f6
MB
32
33# TODO: SOME_SECRET to a password for the discourse user
34hooks:
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