Indeed. This is actually supported if you define the environment variable FLARUM_FORUM_URL:
docker run -d -p 9090:80 -e FLARUM_FORUM_URL=http://localhost:9090 \
--name flarum-in-a-box pianotell/flarum-in-a-box
I wish I didn't have to put the URL in config.php at all, but I think it's a hard Flarum requirement.
I really was striving for a 1 command and it works deal, but the port number is a complication. I can't make it simpler without having folks download a script... and then it's no longer simple at all.
Walid Note: I'm on linux mint 22.3 (no docker desktop and I use portainer)
One thing I figured is that most Linux folks would have no problem figuring this out, no matter which container technology they were using.
I figured that Docker Desktop was the most push-button solution and so started with that. On Mac I use colima and on Linux I just use Docker Engine. What does portainer do?
If anyone has some brilliant idea for how I can remove the port dependency or make Flarum-In-A-Box any simpler, I'm all ears!
Capybara Thank you!