how to dockerize a Confluence instance

I have a couple of Confluence instances running on some Mac Minis. I'd like to consolidate them onto one new machine using Docker. I can find Confluence instances to run, but no clear instructions on how to containerize my existing Confluence instances and run them on the new machine.

Anyone been down this rabbit hole?

As a  bonus question ==>  How do I configure nginx-proxy to properly pong at the correct container based on domain name

1 answer

Hello Michael,

check this image for reference

https://github.com/blacklabelops/confluence

There is even a howto for a nginx reverse proxy config.

If you want to transfer an existing Confluence to Docker, you would normally copy all files from your CONFLUENCE_HOME directory to the Docker volume where the CONFLUENCE_HOME is located. I have done this even from Windows -> Linux, it is relatively simple. You can even use your existing DB configuration in confluence.cfg.xml. Just make sure you back up the volume regularly.

Also I have personally set up Confluence with a dockerized Postgres instance, but it was a fresh installation. Another Docker image connects to a plain old MSSQL server which isnt dockerized. In this case you can simply skip all db config stuff in docker and point confluence.cfg.xml to the existing server.

Cheers

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,933 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you