Created
April 3, 2015 04:41
-
-
Save Leopere/ee855037b9e77a105ed1 to your computer and use it in GitHub Desktop.
Untested sql_only.yml config.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A container for all things Data, be sure to set a secret password for | |
# discourse account, SOME_SECRET is just an example | |
# | |
templates: | |
- "templates/postgres.template.yml" | |
- "templates/sshd.template.yml" | |
expose: | |
- "5432:5432" | |
- "2221:22" | |
params: | |
db_default_text_search_config: "pg_catalog.english" | |
## Set db_shared_buffers to a max of 25% of the total memory. | |
## | |
## On 1GB installs set to 128MB (to leave room for other processes) | |
## on a 4GB instance you may raise to 1GB | |
#db_shared_buffers: "256MB" | |
# | |
## Set higher on large instances it defaults to 10MB, for a 3GB install 40MB is a good default | |
## this improves sorting performance, but adds memory usage per-connection | |
#db_work_mem: "40MB" | |
# | |
env: | |
# ensure locale exists in container, you may need to install it | |
LANG: en_US.UTF-8 | |
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: su - postgres -c 'psql discourse' | |
raise_on_fail: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment