38ccdd4b7f4ed066efd8688df0a0420f048ed3eb
[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/postgres.template.yml"
6 - "templates/redis.template.yml"
7 - "templates/sshd.template.yml"
8
9 expose:
10 - "5432:5432"
11 - "6379:6379"
12 - "2221:22"
13
14 env:
15 # ensure locale exists in container, you may need to install it
16 LANG: en_US.UTF-8
17
18 # amend SOME_SECRET to a password for the discourse user
19 hooks:
20 after_postgres:
21 - exec:
22 stdin: |
23 alter user discourse with password 'SOME_SECRET';
24 cmd: sudo -u postgres psql discourse
25 raise_on_fail: false
26 # be sure to set the host location somewhere sane
27 volumes:
28 - volume:
29 host: /var/docker/shared
30 guest: /shared