Hi All,
I am trying to run both Jira Software and Nginx reverse proxy in docker container.. However I see reverse proxy is not working and i am not able to access the jira site using URL: https://git.X.X.X.net/jira. Could any one guide me where i am going wrong.
docker-compose file is as below.
version: '2'
networks:
gitea:
external: false
services:
nginx:
image: nginx
container_name: nginx
restart: always
ports:
- "443:443"
volumes:
- /apps/nginx/conf:/etc/nginx/conf.d
- /apps/nginx/log:/var/log/nginx
networks:
- gitea
jira:
image: atlassian/jira-software
container_name: jira
restart: always
volumes:
- /apps/atlassian/application-data/jira:/var/atlassian/application-data/jira
environment:
- ATL_PROXY_NAME=git.X.X.X.net
- ATL_PROXY_PORT=443
- ATL_TOMCAT_PORT:8080
- ATL_TOMCAT_CONTEXTPATH=/jira
networks:
- gitea
Nginx Config looks as below:
server {
listen 443;
server_name gitoss.X.XX.net;
ssl_certificate /etc/nginx/conf.d/cert.crt;
ssl_certificate_key /etc/nginx/conf.d/cert.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
location /jira {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://jira:8080/jira;
proxy_read_timeout 90;
proxy_redirect http://jira:8080/jira https://nginx/jira;
client_max_body_size 10M;
}
}
Hi Madhu, were you able to solve this issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.