docker-compose.yml להרצת discourse באופן מקומי

סיכום מבוסס בינה מלאכותית

In a discussion about running Discourse locally using Docker, madhums seeks a working docker-compose.yml file, noting the official discourse_docker repo lacks clear instructions. pfaffman advises following the standard install or using the development Docker guide, suggesting that while Docker Compose is possible, it requires building a custom image and manually configuring environment variables via the launcher. saulshanabrook shares their own working setup via a GitHub repo (discourse-hosting), acknowledging it took significant effort to configure. madhums concludes they lack the time to pursue the complex setup and hopes for a simpler solution or updated documentation in the official repo. The thread highlights that while Docker Compose is feasible, it’s unsupported and not straightforward for beginners.

Hello, I have been trying to set up discourse locally using docker and I bumped into this repository GitHub - discourse/discourse_docker: A Docker image for Discourse · GitHub

Unfortunately, I can’t find proper instructions on setting up a docker-compose.yml file. Has anyone made one? Can this be added to the repository? Or can anyone share if they’ve got it working?

It looks to me like the container configuration mentioned in the readme doesn’t adhere to the compose file definition, hence this question.

Appreciate any response or pointers.
Thanks

The supported way to run it is to follow the standard install. If you want a local/development insurance with no hostname, see Install Discourse for development using Docker.

If you want to install using docker compose, build an image with launcher, put it somewhere docker compose can get it and have at it. There is a launcher command that will print out the necessary env values. You can read the launcher source to get the command, as I can’t remember if.

See also Can Discourse ship frequent Docker images that do not need to be bootstrapped?

I am using docker compose to run discourse locally and on a server. It’s not totally documented, but this is the repo, and happy to answer any questions about it:

https://github.com/saulshanabrook/discourse-hosting

It definitely took me much longer than I expected to get working.

Wow! This seems much more complicated than I thought. I unfortunately don’t have much time to figure all this out so I give up. In case anyone finds a simple way to get discourse working with a docker-compose.yml file, I’d appreciate that and also the readme of discourse_docker repository can be updated. Thank you for your responses so far!