100% automate the setup of Confluence in a Docker container

Using docker-compose and some Dockerfiles I want to fully setup a pair of containers (Confluence+Postgresdb) for production.

I can't have any manual steps in this process. Confluence stores its configuration in confluence.cfg.xml which I have extracted from an existing Confluence instance.

The JDBC and license XML elements have been replaced by variable placeholders such as ${CONFLUENCE_JDBC_USER}, ... etc. They are substituted by using envsubst before

/opt/atlassian/confluence/bin/start-confluence.sh -fg

 is run. All substitutions are applied accordingly. In addition I have removed the 

<setupStep>complete</setupStep>

However upon startup I get an exception

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

How is it possible to setup a fully functional Confluence instance requiring no manual intervention. I have done that for other Atlassian products like Bitbucket or JIRA.

0 answers

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...

381 views 21 10
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