You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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 _cPrime_
Community LeaderSoftware Developer
cPrime
Moscow
1,557 accepted answers
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
10 comments