I run into a minor issue when trying to configure Jira 7.3.5 using a nginx reverse proxy on my local network. I use the cptactionhank jira docker image together with the jwilder nginx-proxy docker image. Everything seems to run fine, but since my update to version 7.3.5, Jira reports an issue with the "base url for gadgets". When opening the support-tools section of the Jira configuration pannel, it states "JIRA is not able to access itself through the configured Base URL". The result is that gadgets on the dashboard don't report their correct names.
It seems to have to do with re-routing the traffic to port 80 through port 8080. When I set the base url in Jira to port 8080, the issue disappears, but unfortunately all my jira urls will be postfixed with port 8080. I tried setting X_PROXY_PORT to 80 and tried to set VIRTUAL_PORT as well in my docker-compose environment, but none of that seemed to change much. I was hoping anyone here had experience with this setup?
Here is my jira docker-compose.yml file:
version: '2'
services:
jira:
container_name: jira
restart: always
image: cptactionhank/atlassian-jira-software:latest
ports:
- "8080:8080"
volumes:
- jira-data:/var/atlassian/jira
- jira-logs-data:/opt/atlassian/jira/logs
dns: 192.168.2.4
expose:
- "8080"
hostname: jira.internal.mydomain.com
network_mode: bridge
environment:
- VIRTUAL_HOST=jira.internal.mydomain.com
volumes:
jira-data:
external: true
jira-logs-data:
external: true
and here is my nginx docker-compose.yml file
version: '2'
services:
nginx:
container_name: nginx
restart: always
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /srv/nginx-proxy/my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
dns: 192.168.2.4
network_mode: bridge