# A container for all things Data, be sure to set a secret password for discourse account, SOME_SECRET is just an example # templates: - "templates/cron.template.yml" - "templates/postgres.template.yml" - "templates/redis.template.yml" - "templates/sshd.template.yml" expose: - "5432:5432" - "6379:6379" - "2221:22" # ssh key for logging in to container params: ssh_key: "" # amend SOME_SECRET to a password for the discourse user hooks: after_postgres: - exec: stdin: | alter user discourse with password 'SOME_SECRET'; cmd: sudo -u postgres psql discourse raise_on_fail: false # be sure to set the host location somewhere sane volumes: - volume: host: /var/discourse/shared guest: /shared