Created
January 15, 2018 21:26
-
-
Save lvaylet/cdef4c78d2e61634d80238acd5f321be to your computer and use it in GitHub Desktop.
docker-compose for JIRA with MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
jira: | |
depends_on: | |
- mysql | |
container_name: jira | |
restart: always | |
image: cptactionhank/atlassian-jira:7.7.0 | |
ports: | |
- '8080:8080' | |
volumes: | |
- jira-data:/var/atlassian/jira # JIRA_HOME | |
mysql: | |
container_name: mysql # https://store.docker.com/images/mysql | |
restart: always | |
image: mysql:5 | |
environment: | |
# Use a .env file to store credentials securely? | |
# https://docs.docker.com/compose/environment-variables/ | |
- MYSQL_ROOT_PASSWORD=ChangeMe! | |
- MYSQL_DATABASE=jiradb # this database will be created on image startup | |
- MYSQL_USER=jira # this user will be granted superuser permissions on MYSQL_DATABASE | |
- MYSQL_PASSWORD=jellyfish | |
volumes: | |
- mysql-data:/var/lib/mysql | |
volumes: | |
jira-data: | |
mysql-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment