Bump base image (#538)
[discourse_docker.git] / samples / data.yml
index 92a11f01b7080f9cf17bdcda077686cef6b4d703..2ecb61a92773ffa12d5bdedc2d488d5ab1e217ef 100644 (file)
@@ -1,30 +1,44 @@
-# A container for all things Data, be sure to set a secret password for discourse account, SOME_SECRET is just an example
+# 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"
+# any extra arguments for Docker?
+# docker_args:
 
-# ssh key for logging in to container
 params:
-  ssh_key: ""
+  db_default_text_search_config: "pg_catalog.english"
+
+  ## Set db_shared_buffers to a max of 25% of the total memory.
+  ## will be set automatically by bootstrap based on detected RAM, or you can override
+  #db_shared_buffers: "256MB"
+
+  ## can improve sorting performance, but adds memory usage per-connection
+  #db_work_mem: "40MB"
+
+env:
+  # ensure locale exists in container, you may need to install it
+  LC_ALL: en_US.UTF-8
+  LANG: en_US.UTF-8
+  LANGUAGE: en_US.UTF-8
 
-# amend SOME_SECRET to a password for the discourse user
+volumes:
+  - volume:
+        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: sudo -u postgres psql discourse
+        cmd: su - postgres -c 'psql discourse'
+
         raise_on_fail: false
-# be sure to set the host location somewhere sane
-volumes:
-  - volume:
-        host: /var/docker/shared
-        guest: /shared