Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating Confluence and JIRA to Docker

Barnaby Keene May 22, 2018

I've had a Confluence installation for just over a year and the time has come to move infrastructure. Docker Compose is what I'm now using and the only remaining services I need to convert is Confluence and JIRA.

The main reason for this is portability - I don't like having system-wide installations like Postgres and I'm not a fan of how I have confluence set up currently - it's a bit of a pain to configure with my new reverse proxy. Hence the push to move everything to Docker and Compose so I can (in theory) take the compose file and deployment config to another server and spin up everything just in case the worst happens.

So my question is: Is this even possible?

I've got Postgres moved over pretty easily, and I thought everything was stored there so I spun up a fresh instance of Confluence and pointed it at the database assuming it would just pick up where I left off - nope, it just told me there was an existing confluence table and that I must start from scratch.

So it seems confluence is storing state elsewhere - configuration I assume. I then tried to mount the contents of the original installation (from `/var/lib/atlassian/application-data/confluence`) into the container at the correct location at `/var/atlassian/confluence` and that resulted in a ton of exceptions.

Just a side note: I'm using the "cptactionhank" Confluence and JIRA Docker images as they seem to be pretty actively maintained and I could only find an official Confluence image on the Atlassian Docker Hub but no official JIRA image.

So is this even advisable or should I just do a completely fresh install? Is there any way I can bulk export all the existing spaces and then import them after I have a fresh Docker install?

Thanks!

1 answer

0 votes
Christian Reichert _resolution_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2018

Hi @Barnaby Keene,

I am not saying it's a good idea to go to Docker - as far as I know Atlassian still officially doesn't support it. We only run some Demo/Test stuff in Docker but not the production ones yet.

That aside I suggest if you look at the "moving server" guides, that probably gives you enough to make this happen:

Jira: https://confluence.atlassian.com/adminjiraserver071/migrating-jira-applications-to-another-server-802592269.html

Confluence: https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html


Cheers,
Christian

Peter Danko September 26, 2019

Hi @Barnaby Keene / @Christian Reichert _resolution_ ,

From version 8x there are available official Docker images:

https://hub.docker.com/u/atlassian

Do you have experience with those official images? I am planning to migrate Jira software from server based installation to docker with possibility to keep working old things (I use Tempo plugins which might be probably challenge to get it work). 

Thank you for any experience.

Cheers, Peter.

Tangaloor
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2019

I haven't done a migration to the docker images, but I did do a fresh install using the confluence one (for a customer). I'm going to attempt a migration to a trial license and see how clean it occurs (several versions back, too).

Erik Blessman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 20, 2022

I recently moved Bitbucket to docker a couple months ago and haven't had any problems yet.

We are on the precipice of moving Jira (and eventually Confluence) to docker.  Any warnings, horror stories, or positive reports on your experience?

Thanks,

Erik 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events