To do this exercise Docker must be installed and running in your Mac computer.
We will use Docker Desktop for Mac (download from here).
After the install process, open it!
Now configure the total RAM and capacity of the Docker service.
Now we are ready to start! Just open the Command Line Terminal and execute this lines in the shell.
docker volume create --name jiraVolume
docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 atlassian/jira-software
Jira Software is now available on http://localhost:8080
Here more info about the Jira Docker container
Now we are ready to start with Confluence! Just execute this lines in the shell.
docker volume create --name confluenceVolume
docker run -v confluenceVolume:/var/atlassian/application-data/confluence --name="confluence" -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server
Confluence is now available on http://localhost:8090
Here more info about the Confluence Docker container
That’s all! As I have promised, only 5 minutes!
Now you can learn other commands for Docker, very useful like in the picture below
- docker images
- docker ps
- docker inspect ID | grep “IPAddress”
- docker volume ls
- docker volume inspect jiraVolume
- docker start jira
- docker stop jira
- docker start confluence
- docker stop confluence
- …
By MrAddon
Here the official response from Atlassian
Hi, can you please show me how to set up a Jira Container which connects (Application Link) with Confluence container in the local development computer?
Let say I have two containers: Jira and Confluence, the name respectively are:
– “jira-container”
– “confluence-container”
I connected two of them to the same network, so they can find each other via the URL: “confluence-container:8090” and “jira-container:8080” and I can create a link between them.
But because I publish the port from container to my local dev computer. So from my browser, I can access them via “localhost:8080”. The problem is with this setup, every Web Item (link) which Jira generate to the UI will be “confluence-container:8090”, not “localhost:8090”, it means this link is useless.
So how do I setup a system like this?
LikeLiked by 1 person
Hello! Use a new container with NGINX in order to be the proxy to route to Jira or to Confluence in the same domain. Regards!
LikeLike
I also found this article: https://community.atlassian.com/t5/Jira-articles/Running-Atlassian-server-product-on-Docker/ba-p/1209665
Thanks!
LikeLiked by 1 person