Docker Community Forums

Share and learn in the Docker community.

Atlassian-Products behind Proxy (SSL, SSH)

Hi,

I am trying to run Jira, Confluence and Bitbucket in Docker-Container behind a reverse proxy on Linux. It worked just fine except the SSH connection to Bitbucket and the SSL Encryption.
I dont know how I solve the problem. I hope you can help me.

I already generated a certificate and a key.

I am a beginner to Proxys and Docker. Step by step instructions would be very useful for me.

Thanks :slight_smile:

My docker-compose.yml:

version: '3' 
services: 
  jira:
    container_name: jira 
    image: atlassian/jira-software:latest
    environment:
     - ATL_PROXY_NAME=jira.mydomain.de
     - ATL_PROXY_PORT=80
     - ATL_TOMCAT_SCHEME=http
    volumes:
     - jira_data:/var/atlassian/application-data/jira

  confluence: 
    container_name: confluence
    image: atlassian/confluence-server:latest
    environment: 
     - ATL_PROXY_NAME=confluence.mydomain.de
     - ATL_PROXY_PORT=80
     - ATL_TOMCAT_SCHEME=http
    volumes:
     - confluence_data:/var/atlassian/application-data/confluence

  bitbucket: 
    container_name: bitbucket 
    image: atlassian/bitbucket-server:latest 
    environment: 
     - SERVER_PROXY_NAME=bitbucket.mydomain.de
     - SERVER_PROXY_PORT=80
     - SERVER_SCHEME=http
    volumes:
     - bitbucket_data:/var/atlassian/application-data/bitbucket

  nginx: 
    container_name: reverse_proxy 
    image: nginx:latest 
    volumes:
     - ./nginx.conf:/etc/nginx/nginx.conf 
    depends_on: 
     - jira 
     - confluence 
     - bitbucket 
    ports: 
     - "80:80"
    volumes: 
     - /data/certs:/etc/nginx/certs 
    networks: 
     default: 
      aliases:
       - mydomain.de

volumes:
  jira_data:
  bitbucket_data:
  confluence_data:

My nginx.conf file

events {}

http {
  server {
    listen 80;
    server_name jira.mydomain.de;

    location / {
      proxy_pass http://jira:8080;
    }
  }

  server {
    listen 80;
    server_name bitbucket.mydomain.de;

    location / {
      proxy_pass http://bitbucket:7990;
    }
  }

  server {
    listen 80;
    server_name confluence.mydomain.de;

    location / {
      proxy_pass http://confluence:8090;
    }
  }
}