Move syslog into its own template, not cron
[discourse_docker.git] / samples / data.yml
index 2f46d826c040fc665434395c482227b369b0d397..df4864fa1d6c64d1a318ce99d8af3790e09ba923 100644 (file)
@@ -1,7 +1,8 @@
-# a basic data only container
-
+# 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/syslog.template.yml"
   - "templates/postgres.template.yml"
   - "templates/redis.template.yml"
   - "templates/sshd.template.yml"
@@ -11,10 +12,20 @@ expose:
   - "6379:6379"
   - "2221:22"
 
-params:
-  ssh_key: YOUR_KEY
+env:
+  # ensure locale exists in container, you may need to install it
+  LANG: en_US.UTF-8
 
+# 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: /home/sam/discourse_docker/shared
+        host: /var/docker/shared
         guest: /shared