add phantom to base image
[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"
5 - "templates/postgres.template.yml"
6 - "templates/redis.template.yml"
7 - "templates/sshd.template.yml"
8
9expose:
10 - "5432:5432"
11 - "6379:6379"
12 - "2221:22"
13
80c11be3
SS
14# amend SOME_SECRET to a password for the discourse user
15hooks:
16 after_postgres:
17 - exec:
18 stdin: |
19 alter user discourse with password 'SOME_SECRET';
20 cmd: sudo -u postgres psql discourse
21 raise_on_fail: false
22# be sure to set the host location somewhere sane
67a25ebf
SS
23volumes:
24 - volume:
29f2f6fc 25 host: /var/docker/shared
67a25ebf 26 guest: /shared