You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello!
I needed to install a Confluence instance for my internal testing but I wanted to use the Postgres database not the internal one.
First I had a look at the docker shipped by Atlassian:
https://hub.docker.com/r/atlassian/confluence-server/
I found a section about using external database but there was no examples. Of course I could create a docker with Postgres, create a Confluence database there, but it would take me more time than I wanted to spend on it.
Then I remembered that Idalko had a tool in Python for running dockers. I typed Idalko docker and got a link to this page:
https://hub.docker.com/r/idalko/atlassian-confluence
I was surprised, it is not a Python project anymore. It is already can be considered as a product.
Moreover there was an example how to run this docker with a Postgres database. Here is the example:
version: '3'
services:
confluence:
image: idalko/atlassian-confluence
environment:
- DISABLE_NOTIFICATIONS=TRUE
- CONF_ARGS=-Datlassian.plugins.enable.wait=300
volumes:
- ./data:/opt/atlassian/confluence/data
ports:
- 8090:8090
restart: always
confluencedb:
image: postgres:9.6
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=confluence
- POSTGRES_DB=confluence
volumes:
- ./db:/var/lib/postgresql/data
restart: always
I created a docker-compose.yml file out of this code and ran the following code in the terminal:
docker-compose up
Then I opened a browser and connected to this url:
http://localhost:8090
I had a standard Confluence setup page. I configured the database:
Then I was asked a couple of other standard questions and I had a Confluence instance running with a Postgres database.
Also the Confluence home directory was mapped to the data folder and Postgres data to the db folder:
Amazing! I spent a couple of minutes to setup everything. Thank you Idalko!
Alexey Matveev
software developer
MagicButtonLabs
Philippines
1,574 accepted answers
10 comments