User Tools

Site Tools


Installing Confluence server in Docker behind reverse proxy

Download Confluence docker image and pass in corresponding environment variables

docker run --network=atl --ip= -e -e ATL_PROXY_PORT=443 -e ATL_TOMCAT_CONTEXTPATH=confluence -e ATL_TOMCAT_SCHEME=https -v /var/lib/docker/volumes/confluenceVolume/:/var/atlassian/application-data/confluence --name="confluence" -d -p 8282:8090 -p 8383:8091 atlassian/confluence-server

–network assigns this container to the network called “atl”. Create the network first.

–ip assigns static ip to the container is URL defined in apache2 config

ATL_PROXY_PORT=443 if SSL is used

ATL_TOMCAT_CONTEXTPATH=confluence if you are running Confluence under a path e.g.

ATL_TOMCAT_SCHEME=https if SSL is used

Change binded ports as necessary.

Configure vhost.conf file

Example with Jira running under root domain:

# JIRA Docker Proxy Configuration:
<IfModule mod_ssl.c>
<VirtualHost *:443>
<Proxy *>
        Order deny,allow
        Allow from all
	ErrorLog ${APACHE_LOG_DIR}/allianz-jira-error.log
	CustomLog ${APACHE_LOG_DIR}/allianz-jira-access.log combined
    SSLProxyEngine          On
    ProxyRequests           Off
    ProxyPreserveHost       On
    # Confluence
    ProxyPass               /confluence       http://localhost:8282/confluence
    ProxyPassReverse        /confluence       http://localhost:8282/confluence
    # Jira    
    ProxyPass               /           http://localhost:8181/
    ProxyPassReverse        /           http://localhost:8181/
    Include /etc/apache2/ssl-common.conf
    SSLCertificateFile /etc/apache2/ssl/
    SSLCertificateKeyFile /etc/apache2/ssl/

See also


wiki/installing_confluence_server_in_docker_behind_reverse_proxy.txt · Last modified: 2023/10/17 11:18 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki