A sample docker compose image for Discourse
Vanilla discourse, no plugins, but batteries included - no bootstrap steps needed.
Check the docker-compose.yml file for how it's setup.
As is, it runs a testing mailhog instance for mail, postgres 15, and latest built tests-passed.
docker compose up -d
Rebuilding just web: docker compose up -d --force-recreate --pull always --no-deps web
Web is built from launcher build web_only. The rest of the jobfile is shuffling docker images, dealing with platform arguments, and figuring out version tags.
See https://github.com/discourse/discourse_docker/blob/main/.github/workflows/push-web-only.yml#L87-L90 for image building, as that line specifically is the only thing needed to build a public image.
See https://github.com/discourse/discourse-postgres for running a customized postgres image, tuned to Discourse with the same customizations as the discourse_docker data image.
Let's Encrypt ssl cert enabled when LETSENCRYPT_ACCOUNT_EMAIL env var is set.
This image now comes bundled in with Resenha for voice support.
No plugins are here - there's no good way to dynamically load plugins (yet). It's always possible to build your own images.