简体   繁体   中英

How to run JIRA and MySQL on same Docker Container

I have found this docker image with JIRA on it. JIRA can be used with MySQL, but I do not want to run MySQL on another Container.

In my opinion it is more useful to run the MySQL on the same Container (faster access, higher security, less resources, etc.).

How can I accomplish that?

You need to use a base image which specializes in managing several services, in order to avoid the " PID 1 zombie reaping issue ".

Create a dockerfile similar to the JIRA one , but:

That way, you can easily start multiple apps, and also stop the container while knowing all apps will be stopping properly.

I did JIRA and PostgreSQL but in two containers, look at https://github.com/manufy/docker-jira-bitbucket-gitlab/blob/master/atlassian/jira/docker-compose.yml

In one container you can mix the JIRA Dockerfile and add commands to install mysql, after that only configure db on web jira install.

Perhaps will help you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM