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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

866 views 23 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