This Docker container is an effort to provide a more self-contained, immediately-deployable image for the Discourse discussion platform.
For background, see this discussion on the Discourse Meta forum.
This image is still very much a work in progress and you are encouraged to build your own image instead of depending on the Docker Hub automated build, until the architecture is more settled. I would hope this repository can be deprecated in the future in favor of a recognized image from the maintainers.
At the moment, this image assumes you are running a PostgreSQL server at postgres,
and a Redis instance at redis.
You should set the following (hopefully self-explanatory) environment variables for the app container:
DISCOURSE_DEVELOPER_EMAILSDISCOURSE_SMTP_ADDRESSDISCOURSE_SMTP_PORTDISCOURSE_SMTP_USER_NAMEDISCOURSE_SMTP_PASSWORDDISCOURSE_DB_PASSWORD(the username is pre-set topostgres)
A sample docker-compose.yml file is included for testing purposes. Database migration
and regular asset creation are not yet configured; to bootstrap the application
for the first time, run:
docker-compose run -u discourse app rake db:migrate assets:precompile
In production, you will want to mount /shared in the app container for data permanence.
- Log rotation?
© 2016 Brad Jones LLC and Civilized Discourse Construction Kit, Inc.
GPL License.
