X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=samples%2Fdata.yml;h=cef5c78ed645d214bde0cb619f33d7f504b02e0d;hb=290c4e038e5f684e0a284202d63ac64fffe7ff56;hp=183a358f15064121cf911a728b466b988f6e1aad;hpb=be82e068978bce338f50c33bb929b65357dd2049;p=discourse_docker.git diff --git a/samples/data.yml b/samples/data.yml index 183a358..cef5c78 100644 --- a/samples/data.yml +++ b/samples/data.yml @@ -1,5 +1,7 @@ -# 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/postgres.template.yml" - "templates/redis.template.yml" @@ -10,25 +12,16 @@ expose: - "6379:6379" - "2221:22" +params: + 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 -params: - db_default_text_search_config: "pb_catelog.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" - -# 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/data @@ -36,3 +29,13 @@ volumes: - 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