Go to file
2019-08-13 09:52:18 +10:00
config DCD-558: Start of cluster configuration, and refactor the env dict is the source of truth for parameters. 2019-08-13 09:52:18 +10:00
hooks Enabled piplines support for automated docker releases 2017-10-10 13:24:57 +11:00
scripts DCD-545: Break confluence.cfg.xml into fragments and generate the DB section. 2019-08-09 14:54:39 +10:00
tests DCD-558: Start of cluster configuration, and refactor the env dict is the source of truth for parameters. 2019-08-13 09:52:18 +10:00
.dockerignore DCD-545: Import the templater script. 2019-08-06 09:01:08 +10:00
.gitignore DCD-545: Add incremental check for target process. 2019-08-06 12:27:21 +10:00
bitbucket-pipelines.yml Run default release pipeline last 2019-08-03 21:19:19 +10:00
Dockerfile DCD-558: Add start of Python entrypoint; execution, permissions, and server.xml. 2019-08-12 14:39:19 +10:00
Dockerfile-alpine DCD-558: Add start of Python entrypoint; execution, permissions, and server.xml. 2019-08-12 14:39:19 +10:00
entrypoint.py DCD-558: Start of cluster configuration, and refactor the env dict is the source of truth for parameters. 2019-08-13 09:52:18 +10:00
entrypoint.sh DCD-545: Break confluence.cfg.xml into fragments and generate the DB section. 2019-08-09 14:54:39 +10:00
README.md DCD-545: Add seraph-config.xml configuration. 2019-08-08 10:48:07 +10:00

Atlassian Confluence Server

Confluence Server is where you create, organise and discuss work with your team. Capture the knowledge that's too often lost in email inboxes and shared network drives in Confluence where it's easy to find, use, and update. Give every team, project, or department its own space to create the things they need, whether it's meeting notes, product requirements, file lists, or project plans, you can get more done in Confluence.

Learn more about Confluence Server: https://www.atlassian.com/software/confluence

You can find the repository for this Dockerfile at https://hub.docker.com/r/atlassian/confluence-server

Overview

This Docker container makes it easy to get an instance of Confluence up and running.

Quick Start

For the directory in the environmental variable CONFLUENCE_HOME that is used to store Confluence data (amongst other things) we recommend mounting a host directory as a data volume:

Start Atlassian Confluence Server:

$> docker run -v /data/your-confluence-home:/var/atlassian/application-data/confluence --name="confluence" -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server

Success. Confluence is now available on http://localhost:8090*

Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See Supported Platforms for further information.

* Note: If you are using docker-machine on Mac OS X, please use open http://$(docker-machine ip default):8090 instead.

Memory / Heap Size

If you need to override Confluence Server's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.

  • JVM_MINIMUM_MEMORY (default: 1024m)

    The minimum heap size of the JVM

  • JVM_MAXIMUM_MEMORY (default: 1024m)

    The maximum heap size of the JVM

Tomcat and Reverse Proxy Settings

If Confluence is run behind a reverse proxy server (e.g. a load-balancer or nginx server), then you need to specify extra options to make Confluence aware of the setup. They can be controlled via the below environment variables.

  • ATL_PROXY_NAME (default: NONE)

    The reverse proxy's fully qualified hostname. CATALINA_CONNECTOR_PROXYNAME is also supported for backwards compatability.

  • ATL_PROXY_PORT (default: NONE)

    The reverse proxy's port number via which Jira is accessed. CATALINA_CONNECTOR_PROXYPORT is also supported for backwards compatability.

  • ATL_TOMCAT_PORT (default: 8090)

    The port for Tomcat/Jira to listen on. Depending on your container deployment method this port may need to be [exposed and published][docker-expose].

  • ATL_TOMCAT_SCHEME (default: http)

    The protocol via which Jira is accessed. CATALINA_CONNECTOR_SCHEME is also supported for backwards compatability.

  • ATL_TOMCAT_SECURE (default: false)

    Set 'true' if ATL_TOMCAT_SCHEME is 'https'. CATALINA_CONNECTOR_SECURE is also supported for backwards compatability.

  • ATL_TOMCAT_CONTEXTPATH (default: NONE)

    The context path the application is served over. CATALINA_CONTEXT_PATH is also supported for backwards compatability.

The following Tomcat/Catalina options are also supported. For more information, see https://tomcat.apache.org/tomcat-7.0-doc/config/index.html.

  • ATL_TOMCAT_MGMT_PORT (default: 8000)
  • ATL_TOMCAT_MAXTHREADS (default: 200)
  • ATL_TOMCAT_MINSPARETHREADS (default: 10)
  • ATL_TOMCAT_CONNECTIONTIMEOUT (default: 20000)
  • ATL_TOMCAT_ENABLELOOKUPS (default: false)
  • ATL_TOMCAT_PROTOCOL (default: HTTP/1.1)
  • ATL_TOMCAT_ACCEPTCOUNT (default: 10)

Confluence-specific settings

  • ATL_AUTOLOGIN_COOKIE_AGE (default: 1209600; two weeks, in seconds)

    The maximum time a user can remain logged-in with 'Remember Me'.

JVM configuration

If you need to pass additional JVM arguments to Confluence such as specifying a custom trust store, you can add them via the below environment variable

  • JVM_SUPPORT_RECOMMENDED_ARGS

    Additional JVM arguments for Confluence

Example:

$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/confluence/cacerts -v confluenceVolume:/var/atlassian/application-data/confluence --name="confluence" -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server

Upgrade

To upgrade to a more recent version of Confluence Server you can simply stop the Confluence container and start a new one based on a more recent image:

$> docker stop confluence
$> docker rm confluence
$> docker run ... (see above)

As your data is stored in the data volume directory on the host, it will still be available after the upgrade.

Note: Please make sure that you don't accidentally remove the confluence container and its volumes using the -v option.

Backup

For evaluating Confluence you can use the built-in database that will store its files in the Confluence Server home directory. In that case it is sufficient to create a backup archive of the directory on the host that is used as a volume (/data/your-confluence-home in the example above).

Confluence's automatic backup is currently supported in the Docker setup. You can also use the Production Backup Strategy approach if you're using an external database.

Read more about data recovery and backups: Site Backup and Restore

Versioning

The latest tag matches the most recent release of Atlassian Confluence Server. So atlassian/confluence-server:latest will use the newest stable version of Confluence Server available.

Alternatively, you can use a specific minor version of Confluence Server by using a version number tag: atlassian/confluence-server:6.13. This will install the latest 6.13.x version that is available.

For the latest developer (EAP) release use atlassian/confluence-server:eap. This will install our latest milestone (not supported for use in production).

By default our Docker image uses OpenJDK, which is not supported for production sites. However we do provide a fully supported Docker image that uses AdoptOpenJDK 8. These images are tagged with the suffix ubuntu-18.04-adoptopenjdk8 together with the Confluence version.

For example, atlassian/confluence-server:6.13-ubuntu-18.04-adoptopenjdk8 will install the latest 6.13.x version with AdoptOpenJDK 8.

Known Problems

In Mac OS X with Docker version 1.11.0, when running with docker-machine, there is a bug where the directory specified for CONFLUENCE_HOME in a volume mount will not have the correct permission, and thus startup fails with a permission denied error: Error writing state to confluence.cfg.xml com.atlassian.config.ConfigurationException: Couldn't save confluence.cfg.xml to /var/atlassian/confluence-home directory.

See https://github.com/docker/docker/issues/4023 for details.

To work around this issue, use a different host operating system other than Mac OSX until a newer release of Docker fixes this issue.

Support

This Docker image is great for evaluating Confluence. However, it does not use an Oracle JDK due to licensing constraints. Instead, it uses OpenJDK which is not supported for running Confluence in production.

To meet our supported platform requirements, you'll need to either:

  • build your own image based on Oracle JDK. See Update the Confluence Docker image to use Oracle JDK for more info.
  • use our image that is based on AdoptOpenJDK 8, which is fully supported for Confluence 6.13 and later. These images are tagged with the suffix ubuntu-18.04-adoptopenjdk8 together with the Confluence version.