Install Jira, Confluence and Bitbucket with Docker Compose
1. Create network
1 . Create network for atlassian
2.
Install Nginx1 . Create volume for nginx
You will find nginxdata is located into:
/var/lib/docker/volumes/nginxdata/_data /var/lib/docker/volumes/nginxwww/_data
Copy opt/nginx/docker-compose.yml to /opt/nginx/docker-compose.yml
3.
Install PostgreSQL1 . Compose and run docker postgre
Copy opt/postgre/docker-compose.yml to /opt/postgre/docker-compose.yml
volume links to /var/postgre_atlassian/data
2 . Create database in docker postgre
3 . Check database
4.
Install Jira1 . Create volume for jira
You will find jiradata is located into:
/var/lib/docker/volumes/jiradata/_data
2 . Compose and run docker jira
Copy opt/jira/docker-compose.yml to /opt/jira/docker-compose.yml
3 . Run and restore Jira from backup file [Skip if not necessary]
http://jira_ip:8085
restore jira data Copy the backup jira_db_xxxx.zip file to /var/atlassian/jira/import under jira image
restore database data
Set license and some required configurations, go to System->Import & Export. Then restore from the db data backup file.
4 . Restart docker jira
5 . Update license
- Update license, otherwise Jira Software does not work as wished
- Go to System to execute re-index
- Update Add-ons
5.
Install Confluence1 . Create volume for confluence
You will find confluencedata is located into:
/var/lib/docker/volumes/confluencedata/_data
2 . Compose and run docker confluence
Copy opt/confluence/docker-compose.yml to /opt/confluence/docker-compose.yml
3 . Run and restore Confluence [Skip if not necessary]
http://confluence_ip:8093
5-1.
Set up database- Hostname: postgre_atlassian
- Port: 5432
- Database name: confdbname
- Username: confdbusername
5-2.
Restore DataYou can restore data by installation.(To avoid problem by installation, recommend to create a user account, complete the configuration and then restore after login) Copy the backup confluence_xxxx.zip file to /var/lib/docker/volumes/confluencedata/_data/restore/confluence_xxxx.zip
You can also restore later, go to System -> General Configuration -> Backup and Restore. Then restore from the backup file.
or
4 . Restart docker confluence
5 . Update license
- Update license, otherwise Confluence Software does not work as wished
- Go to System to execute re-index
- Install required Add-ons
6.
Install Bitbucket1 . Create volume for bitbucket
You will find bitbucketdata is located into:
/var/lib/docker/volumes/bitbucketdata/_data
2 . Compose and run docker bitbucket
Copy opt/bitbucket/docker-compose.yml to /opt/bitbucket/docker-compose.yml
3 . Run and restore bitbucket [Skip if not necessary]
http://bitbucket_ip:7990
6-1.
Restore databaseset configuration when install bitbucket, it is better to give one temprary database, to avoid dropping database before dump.
- Hostname: postgre_atlassian
- Port: 5432
- Database name: confdbname_tmp
- Username: confdbusername
Or go to /var/atlassian/bitbucket/shared folder and edit the bitbucket.properties file.
After installation, restore database
6-2.
Restore Data, RepositoriesInstall bitbucket, create a user account, complete the configuration.
Copy the backup bitbucket_data_xxxx.tgz file to /var/lib/docker/volumes/bitbucketdata/_data/shared/bitbucket_data_xxxx.tgz
4 . Restart docker bitbucket
5 . Update license
- Update license, otherwise bitbucket Software does not work as wished
- Go to System to execute re-index
- Install required Add-ons