Run Discourse as docker swarm service

This is beyond the support you can expect here. There are just too many tiny things that could be wrong that’s why the standard install is really all that is supported. Here are some hints. If you’re stuck and have a budget you can contact me or ask in Marketplace

You can’t use the base image. You have to bootstrap your own and push it to a repo. If you’re clever and have lots of time you can get github to do it for you.

You’ll need to put your assets on S3 (Configure an S3 compatible object storage provider for uploads)

Are you trying to have all of those write to the same log files? I’d just leave them in the container and ignore them.

I don’t think you need ports 8080 and 8443—traefik is handling that, right? Discourse won’t work on a non-standard port.

something like:

./launcher bootstrap app
docker push-that-container-to-your-private-repo
./launcher start-cmd

Then you can use the variables in the start-cmd to launch your swarm with the right stuff so it can find your database, redis, and so on. I see you have a bunch, but I’m not sure that’s all that you need.

2 Likes