docker-discourse

This image is still very much a work in progress and you are encouraged tobuild your own image instead of depending on the Docker Hub automated build,until the architecture is more settled. I would hope this repository can bedeprecated in the future in favor of a recognized image from the maintainers.

Usage

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_EMAILS

DISCOURSE_SMTP_ADDRESS

DISCOURSE_SMTP_PORT

DISCOURSE_SMTP_USER_NAME

DISCOURSE_SMTP_PASSWORD

DISCOURSE_DB_PASSWORD (the username is pre-set to postgres)

A sample docker-compose.yml file is included for testing purposes. Database migrationand regular asset creation are not yet configured; to bootstrap the applicationfor 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.