Move syslog into its own template, not cron
[discourse_docker.git] / samples / data.yml
CommitLineData
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
SS
3templates:
4 - "templates/cron.template.yml"
d0d7cd47 5 - "templates/syslog.template.yml"
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
3cb3d9c4
S
15env:
16 # ensure locale exists in container, you may need to install it
17 LANG: en_US.UTF-8
18
80c11be3
SS
19# amend SOME_SECRET to a password for the discourse user
20hooks:
21 after_postgres:
22 - exec:
23 stdin: |
24 alter user discourse with password 'SOME_SECRET';
25 cmd: sudo -u postgres psql discourse
26 raise_on_fail: false
27# be sure to set the host location somewhere sane
67a25ebf
SS
28volumes:
29 - volume:
29f2f6fc 30 host: /var/docker/shared
67a25ebf 31 guest: /shared