Big cleanup of discourse docker environment
[discourse_docker.git] / samples / data.yml
index 2f46d826c040fc665434395c482227b369b0d397..cef5c78ed645d214bde0cb619f33d7f504b02e0d 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/postgres.template.yml"
   - "templates/redis.template.yml"
   - "templates/sshd.template.yml"
@@ -12,9 +13,29 @@ expose:
   - "2221:22"
 
 params:
-  ssh_key: YOUR_KEY
+  db_default_text_search_config: "pg_catalog.english"
+  ## Set db_shared_buffers to 1/3 of the memory you wish to allocate to postgres
+  ## on 1GB install set to 128MB on a 4GB instance you may raise to 1GB
+  #db_shared_buffers: "256MB"
+
+env:
+  # ensure locale exists in container, you may need to install it
+  LANG: en_US.UTF-8
 
 volumes:
   - volume:
-        host: /home/sam/discourse_docker/shared
+        host: /var/discourse/shared/data
         guest: /shared
+  - volume:
+        host: /var/discourse/shared/data/log/var-log
+        guest: /var/log
+
+# TODO: SOME_SECRET to a password for the discourse user
+hooks:
+  after_postgres:
+    - exec:
+        stdin: |
+          alter user discourse with password 'SOME_SECRET';
+        cmd: su - postgres -c 'psql discourse'
+
+        raise_on_fail: false