Jira and Docker – on the fly

If you need to quickly get Jira running on an external database (postgres/mysql) and you don’t want to mess with disk cleanup later, use docker.

To access the jira_home directory instead of using a volume mount a specific directory from the disk.

How to do it? Very simple – here are the commands.


docker run --name jira8-17-0 -v "/Users/marcin/docker/jira":/var/atlassian/application-data/jira -e JVM_MINIMUM_MEMORY=2048M -e JVM_MAXIMUM_MEMORY=2048M -d -p 8080:8080 atlassian/jira-software:8.17.0-ubuntu-jdk11


docker run --name postgres -v "/Users/marcin/docker/postgres":/var/lib/postgresql/data -e POSTGRES_PASSWORD=mysecretpassword -d postgres:11


docker run --name mysql8 -v "/Users/marcin/docker/mysql":/var/lib/mysql -e MYSQL_ROOT_PASSWORD=mysql -d mysql:8.0

Remember to always start the containers in the same order, so that they get the same IP on the docker network.

Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.