Commit | Line | Data |
---|---|---|
80c11be3 SS |
1 | # A container for all things Data, be sure to set a secret password for discourse account, SOME_SECRET is just an example |
2 | # | |
67a25ebf | 3 | templates: |
67a25ebf SS |
4 | - "templates/postgres.template.yml" |
5 | - "templates/redis.template.yml" | |
6 | - "templates/sshd.template.yml" | |
7 | ||
8 | expose: | |
9 | - "5432:5432" | |
10 | - "6379:6379" | |
11 | - "2221:22" | |
12 | ||
3cb3d9c4 S |
13 | env: |
14 | # ensure locale exists in container, you may need to install it | |
15 | LANG: en_US.UTF-8 | |
16 | ||
6f99f3c2 S |
17 | params: |
18 | db_default_text_search_config: "pb_catelog.english" | |
19 | ## Set db_shared_buffers to 1/3 of the memory you wish to allocate to postgres | |
20 | ## on 1GB install set to 128MB on a 4GB instance you may raise to 1GB | |
21 | # db_shared_buffers: "256MB" | |
22 | ||
80c11be3 SS |
23 | # amend SOME_SECRET to a password for the discourse user |
24 | hooks: | |
25 | after_postgres: | |
26 | - exec: | |
27 | stdin: | | |
28 | alter user discourse with password 'SOME_SECRET'; | |
29 | cmd: sudo -u postgres psql discourse | |
30 | raise_on_fail: false | |
31 | # be sure to set the host location somewhere sane | |
67a25ebf SS |
32 | volumes: |
33 | - volume: | |
be82e068 | 34 | host: /var/discourse/shared/data |
67a25ebf | 35 | guest: /shared |
be82e068 S |
36 | - volume: |
37 | host: /var/discourse/shared/data/log/var-log | |
38 | guest: /var/log |