Docker Images without Docker Hub?

AI-generated summary

The discussion revolves around creating and hosting custom Docker images for Discourse without relying on Docker Hub. Derp wants to build a custom image for security and simplicity, using an Alpine base image and their own nginx setup. hellekin pointed to relevant discussions on meta Discourse regarding simple Docker image setups and community-supported official images. Falco shared the location of the base Dockerfile for unsupported learning purposes, but clarified that Meta uses the same base image published to DockerHub and pinned in the launcher for consistency and early problem detection. Stephen noted that Let’s Encrypt is already supported in existing Discourse installations.

I’d like to build my own, and potentially simplify the discourse docker setup a bit. I already have an nginx setup on this server, so that is redundant. Also, for the sake of security, it would be nice to build and host locally our own discourse docker images. Do any of you devs do this? It isn’t obvious how minimal the base image is, either. I typically like to use images based on alpine. With our own nginx setup, we can then use letsencrypt, for example.

Welcome to the club of people who want simple Docker image setups. You probably want to read:

Let’s encrypt is already supported in the existing install.

If you wanna to go into an unsupported route for learning purposes the base Dockerfile can be found here: discourse_docker/image/base/Dockerfile at master · discourse/discourse_docker · GitHub

Do you guys build the images that you use for hosting with that dockerfile or by building them with that dockerfile plus pups?

We use this very same base image that is published to DockerHub and pinned in our launcher.

Meta is deployed using the same stuff everyone uses, a ./launcher bootstrap app creates the image and everything. Using the same tools ensure we can hit most problems earlier and fix those before they are pushed to everyone.