Infos:
- Used Zammad version: 6.4.1
- Used Zammad installation type: docker-compose
- Operating system: Debian 11
- Browser + version: Firefox
I’m trying to setup a docker compose install and saw two options, one of which I couldn’t get to work, the other I could, but without support for websockets. This could be founded in confusion on my part or a missing recommended install that supports websockets.
First, I tried modifying the given docker-compose.yml
to use only my own nginx server, not the embedded zammad-nginx
. For that, I removed that service from the docker-compose.yml
, and adapted the provided nginx.conf
to my needs. Notably, I replaced root /opt/zammad/public
with a copy of the public folder in the repo on my servers file system.
This didn’t work since zammad-railsserver
expects to be able to write the javascript files to that folder and expects nginx to serve them. I do not understand how this works in the default docker-compose.yml
, since they only share the zammad-storage
volume which wasn’t even mapped to the right folder, but it did work once I gave up on this path:
So next I used two nginx servers - my existing one which I already use as the reverse proxy, and the embedded zammad-nginx
. This worked fine and was easy to setup. Until I was informed by errors in the log and this forum post that this setup would NOT work in the future since the nginx reverse proxy does not proxy websockets.
Now this implies the proper solution would be to get my first attempt running:
Instead of forwarding 443 straight to 8080, don’t use the embedded zammad-nginx
and instead handle everything in one nginx server, proxying straight to 3000 and notably, to 6042 for websocket support.
How would I go about this? For now setup 2 seems to work, but the above mentioned forum posts indicates this doesn’t work for mobile right now, and won’t work for desktop in the future. But I can’t find a proper docker compose+nginx setup that actually supports websockets and works.
Thank you for your assistance.