We are running Jira and Confluence as docker containers behind a Nginx reverse proxy. Therefore we need to edit the server.xml to add the proxy configurations. But the Dockerfile is creating a new server.xml out of a template file and this will overwrite the setting we make in this file. Is there any workaround for this?
Sincerely
I was able to get our customization working again by copying the template file to the host, modifying it for our purposes, and then copying it back to the template location as part of our startup automation. That copies the file into the running container and restarts:
docker cp ./custom/server.xml.j2 confluence-7.0.1:/opt/atlassian/etc/.
docker restart confluence-7.0.1
BTW, we also use nginx, but the VIRTUAL_... and X_PROXY... variables are sufficient for our purposes so no server.xml customization needed for that. However, we do add data sources to the config.
Thanks, that worked for me. I also tried to set these settings via environment variables at the docker container creation, but this also didn't worked for me.
Your solution worked well!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That didn't work for me. I found a working answer in: https://community.atlassian.com/t5/Jira-questions/How-to-use-a-custom-server-xml-on-Jira-Docker-image/qaq-p/1166929
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked, i mean all i did was to modify the server.xml.j2 to contain the values that i needed while using nginx, the banner at the bottom at that says something is wrong is gone!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.