Our email server is configured to listen from the localhost only. We are experimenting with Discourse on a very different system and do not want it to have any connection with the production environment. For now we are using one of the recommended SMTP providers for Discourse, if we decided to finally migrate our production forum to Discourse, and the email traffic grows then we might configure an Exim4 container and run it under the same private network, otherwise will configure a separate instance, open it to accept connections from elsewhere and put the firewall in place.
Thanks for your quick reply @Falco in this other thread that was closed before I could respond. I hope this one isnât too long of a response but I found a bunch of things that could probably either use clarification or an update to 2017 since the status of most of the problems that were outlined in that other post have solutions now.
A good number of things outlined in the initial part of that post really outlines the dated nature of the official response to why there is no docker-compose methodology being developed here.
For example:
Youâre supposed to configure a docker-compose file in such a way that it does all of the ensuring itself. If the file fails to run it gives very comprehensive responses as to what is wrong. Also if you want to make things super easy for people you could even go the route of creating a tool where you could just cherry-pick a series of settings and things similar to the now defunct https://lorry.io which now only exists as a git repo GitHub - CenturyLinkLabs/lorry-ui: Docker Compose YAML Editor if it is what I think it is. You could just cherrypick what you need and it would format the YAML file correctly so no worrying about spacing etc like so many have trouble with Y.
I understand the desire to want to provide this help and if there needs to be that level of assistance to the average installer of Discourse then so be it but the base framework of assume some level of competence rather than the assumption of the complete lack thereof and using industry standard stuff is ideal.
This is officially supported in docker now. docker images prune docker container prune docker system prune
Doesnât the philosophy of using a custom script/wrapper technically just impose your own philosophy?
At least an attempt at some degree of documentation of this would be phenomenal even if only in the container on https://hub.docker.com with an example docker-compose.yml for the sake of getting people started.
Both of these reasons can be handled in docker-compose using a container that can be set to bootstrap only and then is shut down using docker-compose up -d bootstrap or something along those lines then followed by docker-compose stop && docker-compose rm -f bootstrap along with shared volumes or even direct host filesystem mounted volumes.
This all should mostly be done using either your own homebrew container that can handle upgrades. Along with environment variables passed into the CMD directives of the Postgres container or even just pull a specific tag from the discourse official repos.
configured correctly should be handled by Env vars and launched before see docker-compose version 3 depends_onOverview | Docker Docs
This can all be handled using a custom fork of the official repositories for Nginx under the discourse organization account on hub.docker.com with a custom launch script with Env vars and case switches.
I hope that I donât come off poorly with making these criticisms I just see a lot of fringe cases that would be handled easier with a docker-compose file as the documentation can tend to make a lot of assumptions.
⌠not to mention how to handle all the things that still canât be done with docker-compose. âthereâs now only 17 reasons why you canât use docker-compose, not the 27 you said there were!â isnât particularly useful or interesting. The best way to demonstrate that docker-compose is capable of supporting Discourse is to do it.
When you try ./discourse-setup and have port 80 and 443 the installer script links you to a tutorial on this forum that doesnât apply to servers that are already running something on port 80/443. This is what the discourse-setup script links you to but it doesnât actually fix the problem because I donât want to tear down my web services on 443/80 just to run the installer.
It assumes that the Discourse files are already setup somehow. So if this documentation is either incomplete or ineffective for scenarios like mine, which by the sounds of it have been consistent problems. It seems that rather than waiting on or relying on proper or complete or more clear documentation it would be ideal to use standards where your suggested philosophical agnosticism doesnât have to apply.
The underlying issue that I keep seeing reoccur is the fact that many of these setup hurdles would be bypassed with switching to something where you wouldnât have to document it.
Youâve even made suggestions that it might be in the cards to make a switch I was just trying to make compelling responses to all of the reasons that were proposed as to why docker-compose was unsuitable.
Iâm not expecting you to do anything all that I was trying to do was discuss something that, according to the original post was open for some degree of discussion.
The suggestion was clearly not to have a short and unprofessional response like this. Ultimately if I were to be able to get this software running on my own server maybe one day I might make suggestions to other people to buy support from you guys but if this is a sample of the kind of reaction that would be received by your support staff if I were a paying customer I have to say Iâd definitely avoid making the referral as much as I believe in this technology.
The suggestions that I made, I believed would have made a clear case as to why switching to docker-compose would not only be ideal for you but ideal for everyone. If itâs officially supported and documented by your contributors it would benefit everyone and not just me. This was part of the case that I made when I was trying to thoughtfully re-ignite discussion on the topic.
Youâre not wrong, but ideally, the reason that Iâm here talking about it is that its obviously not something that is working in my use case in its current state. If I personally had the ability to do all of the things that are being done using your software I would be doing that instead of whining about it to you people.
I assumed that if I came up with a reasonably well thought through response explaining how the other technology could potentially alleviate many of these issues could be beneficial to this project.
Truthfully I would love to do this myself and then submit a solution but the reason Iâm even looking at Discourse isnât so that I can start working for Discourse. Iâm looking at Discourse because I want a discussion board that will suit my communities needs better than XenForo.
We donât sell support, we sell hosting. So thereâs that.
Switching to docker-compose has real costs (in engineering time), for very little benefit. Every time someone comes along and says âyou should use docker-compose!â, we reply âshow us how!â and then things go⌠eerily quiet. Itâs almost like launcher does things that canât be done with docker-compose⌠the best âwell thought through responseâ would be a working demonstration of a launcher-less alternative.
If you have problems with any of the documentation here, please tell us about it in the relevant topic(s) so it can be improved. Tearing down everything and starting again just because a howto needs a tweak seems like an incredibly poor use of everyoneâs time.
I do not know how any reasonable person could read this topic and feel further âdiscussionâ was necessary.
If you would like to prove us wrong then by all means, do the work and make it whatever you want it to be. Otherwise, with all due respect, you are wasting our time.
Go ahead. Show us how wrong we are. Really rub our noses in it with your implementation. Iâll be waiting to see your results.
I see their responses as professional. The response you got was clear and concise. It leaves no ambiguity or wriggle room which is precisely what Iâd expect of a professional response.
Perhaps you read that response as heavily loaded against you personally or too dismissive of your argument. I read it as a simple statement. That is why I think you should have left out the second paragraph. It reeks of pique and wastes an âultimatelyâ on a chain of less than conclusive probabilities:
if I am able âŚ
maybe, one day, I might âŚ
if this is âŚ
if I were âŚ
P.S. I wrote this before seeing codinghorrorâs response and edit.
I wasnât intending to sound irritated but it is rather frustrating that I have asked several times for clarification throughout the past year on different occasions but have received no clarification. I just think that there can be many ways to simplify the whole process which would only increase adoption unless thatâs not the goals here.
@codinghorror believe me I would love to. Iâm not trying to waste your time but Iâve asked on several occasions for assistance or clarifications on documentation on different problems that were created by the launcher.
Also, I have zero interest in ârubbing your noses in anythingâ all that I was suggesting was that there may be a vastly simpler methodology that would solve certain ambiguities that seem to pop up frequently. If anything if I had the time available, which I am fully aware that you are all busy also, I would gladly contribute. Since I donât have that time nor do I have time to pick apart the entire application itself to understand all of the moving parts which all seem like they could be reasonably easily converted to the industry standard so it would be easier to deploy to things like Kubernetes or RancherOS or other misc docker solutions without needing to employ the use of a private registry just to ship the container in a pre-made fashion.
I really donât see how itâs unreasonable to re-hash old ideas especially after many new developments have arisen.
I fail to see how docker-compose would solve that problem â it wonât magically allow two processes to bind to the same port. Either way, you will need to set up a proxy that can route incoming requests.
The howto could certainly benefit from a section on how to proceed if Discourse is not already set up, but I currently donât have the time to describe that properly. A short version boils down to this:
Follow normal instructions, stopping just before executing discourse-setup.
Copy /var/discourse/samples/standalone.yml to /var/discourse/containers/app.yml.
Fill in the necessary settings in /var/discourse/containers/app.yml. Be careful, you cannot test this yet!
Then continue with the howto, beginning with installing Nginx.
What I find particularly striking about this entire discussion is that you appear to have never read through discourse_docker.
Looking at this file, is it really that hard to figure out how to change exposed ports? In fact our line there looks exactly the same as the ports line in compose.
The whole narrative here is, âI want to do super advanced things with docker, I already know how to cope with docker compose, donât make me learn something newâ
99% of our free installers just spin up a digital ocean instance and run the setup. They do not need to learn anything.
They do not need to learn about docker compose or figure out how to install it.
They donât even need to figure out how to install docker.
So you are here, making a lot of noise about how we are not catering right for the 1% of free installers who both want to do something advanced and do not want to learn anything new. So, I am not sure I want to be in the business of helping these people.
As I said many times, Discourse docker can deploy fine in a kubernates or what have you. You just need to understand.
We ship a ânaked fat imageâ
We have a custom process that runs docker build on that image adding in specific information that is only relevant to you, like the specific plugins you run.
The same step compiles our assets (cause plugins may introduce new ones) and migrates the database
At the end of this bootstrap you have an real docker image you can deploy anywhere that is capable of running Discourse.
The whole pain point I am trying to address here has almost nothing to do with particular tech.
Pain points I am interested in solving long term are
Faster bootstrap
Easier and more frequent base image updates
More consistent update process from web upgrader vs a full rebuild
Probably move default setup to 2 containers vs 1 container
./discourse-setup is for people who donât know what nano is (and would never be able to figure out how to quit vim). It seems that frequently people who donât need ./discourse-setup fail to realize that itâs not magic.
Perhaps install-CLOUD should include a section like:
For advanced system administrators:
If you want to take matters into your own hands rather than trust a script with limited flexibility, you might do something like this:
cp samples/standalone.yml containers/app.yml
[nano | vim ] containers/app.yml
# edit the file as indicated by the comments in the file
./launcher bootstrap app
Thank you for your thoughtful response I appreciate your analysis on the matter.
Yes, I think youâre on exactly the right track. The fact that you say, âfail to realizeâ in your reply in regards to a tutorial for helping people âSet up Discourse in the cloud in under 30 minutes with zero knowledge of Rails or Linux shell.â which would be the logical baseline to start poking around, is concerning to me for people looking to adopt the technology.
Iâm just concerned about the jump between the 30-minute Beginner Install Guide and the Advanced Docker install guide thereâs also no clear disclaimer anywhere that explains what itâs essentially doing for you. The fact that Iâm even here in the first place should be evidence that itâs not quite there yet.
@fefrei I also appreciate your response greatly thank you for your helpful input as well.
The docker-compose situation is not supposed to offer a solution to the port binding issues I can appreciate that the discourse-setup is intended for helping people who donât care about learning Linux and just want to magic into place a discourse install.
Ultimately my concerns are just for documentation and knowledge assumption.
It would be ideal, yes, that the howto would include some clarification or even more beneficial a step by step to get you running on a recommended basic working setup that people can fork off from and customize once they get the base concepts down on what will and wonât work.
I did actually end up just changing the file itself to skip those ports only to have it fail for a completely different reason which Iâm probably going to need to open a discussion about.
My point was to either suggest that maybe a docker-compose file might alleviate some of the responsibility from your dev team in the future. The other side of it was to see if someone could suggest some clarity in the documentation or scripts themselves.
Maybe the 1% would be a larger percent if it was clearer your mentality on this situation you suggested is appalling. Making assumptions that just because of it currently being a small demographic, that it could never be a larger one and that it would be a waste of time. To even attempt to open your platform up to other people you would never have expected to be your demographic. Sometimes the biggest innovations and coolest implementations of your technologies come from the unlikeliest of sources.
Goodness, if you look at contemporary artists most of these people arenât all experts on the technologies or mediums that they use in their art and thatâs in part how they make something more amazing than anyone else has thought of before. I apologize if I sound like Iâm nitpicking here but itâs just frustrating to me when people think this way and Iâll keep my opinions of this to myself from now forward.
If or when I end up with this thing installed live Iâll see what types of suggestions I could potentially make for a code to make it go. Also, Iâm not trying to walk in here guns a waving saying change all the things! Iâm just saying that it might not be the worst thing in the world to try switching things to Env vars or even just have a script that bootstraps inside the discourse official images that insert the Env vars.
I doubt it. Itâs crazy difficult to install docker-compose. Though it gets installed if you install Docker on Mac or Windows, for some reason, though they have a repo that will install Docker, if you want docker-compose, you have to download a shell script on your own. Itâs like they donât want you to use it in Linux. That fact aside, itâs not clear that people necessarily understand docker-compose. Iâve tried several times, and still find it no less obfuscated than the yml file that configures Discourse.
But, really, if there had been a little text that suggested you edit the yml file by hand, would you have been able to move on and follow the Discourse-with-other-web-server instructions?
I was trying to fuddle along that way before I came in here in the first place asking questions and trying to make helpful suggestions. The last time I posted about this was some time early last year I believe and basically, the whole problem fell on deaf ears and I got no response at all.
I remember before there was the discourse-setup script there was documentation on how to do it just using the launcher if I recall correctly, forgive me if my recollection is a bit off its been a while. I managed to easily get a multi-container setup running using the launcher. I ended up having to write my own wrapper script to automate some of it so an upgrade would be easier and things like that ( a bit meta I know ) but it all came together rather nicely.
The reason I was making the suggestions was that if this is still a problem one year later it might be ideal to offload some of the documentation work.
There should maybe be a from Zero to Hero kind of guide written into the Advanced guide or something along those lines which might help to get a working base that isnât the standalone model only and also one that is.
@mpalmer, if suitable, please merge the following thread here. I was thinking of posting here in the first place, but I thought that this thread is already loaded with problem descriptions and justifications, so a potential solution perhaps would be better suited in a separate thread.