- Notifications
You must be signed in to change notification settings - Fork31
int128/devops-compose
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A compose of following Docker containers:
- Crowd
- JIRA software
- Confluence
- GitBucket
- Jenkins
- Artifactory
- SonarQube
- Mattermost
- ownCloud
- OpenLDAP
Create a wildcard record on the DNS service.
A *.example.com. 192.168.1.2.If you do not have a domain, instead use the wildcard DNS service such as xip.io.
Create a PostgreSQL instance. It is recommended to use managed services such as Amazon RDS or Google Cloud SQL for maintenancebility reason. If we are not on cloud, we can adda PostgreSQL container to thedocker-compose.yml.
MySQL is also available and works well butPostgreSQL is recommended for JIRA.
Initialize databases and users withinit-postgresql.sql.
Docker Compose and enough swap space are required.
yum install -y dockermkdir -p /opt/bincurl -L -o /opt/bin/docker-compose https://github.com/docker/compose/releases/download/1.12.0/docker-compose-Linux-x86_64chmod +x /opt/bin/docker-composefallocate -l 4G /swapfilechmod 600 /swapfilemkswap /swapfileswapon /swapfileecho'/swapfile swap swap defaults 0 0'>> /etc/fstab
Run containers. This may take a few minutes.
# Database hostecho'DATABASE_HOST=xxxxx.xxxxx.rds.amazonaws.com'>> .env# Domain nameecho'REVERSE_PROXY_DOMAIN_NAME=example.com'>> .env# using your DNSecho'REVERSE_PROXY_DOMAIN_NAME=192.168.1.2.xip.io'>> .env# using xip.iodocker-compose builddocker-compose up -d
Openhttp://devops.example.com (concatenatedevops and domain name).
Open Crowd and configure the database connection.
- Database server: Hostname of the database instance
- Type: PostgreSQL
- Database name:
crowd - User:
crowd - Password:
crowd
Add the LDAP directory.
- URL:
ldap://ldap:389/ - Base DN:
dc=example,dc=org - Username:
cn=admin,dc=example,dc=org - Password:
admin
Open JIRA and configure the database connection.
- Database server: Hostname of the database instance
- Type: PostgreSQL
- Database name:
jira - User:
jira - Password:
jira
Add the Crowd server.
Open Confluence and configure the database connection.
- Database server: Hostname of the database instance
- Type: PostgreSQL
- Database name:
confluence - User:
confluence - Password:
confluence
Add the Crowd server.
Get the initial admin password by following command:
dockerexec devopscompose_jenkins_1 cat /var/jenkins_home/secrets/initialAdminPasswordOpen Jenkins and configure LDAP authentication.
- Server:
ldap - Root DN: (empty)
- User search base:
dc=example,dc=org - User search filter:
cn={0} - Group search base:
dc=example,dc=org - Group search filter:
cn={0} - Group membership:
memberOf(default) - Manager DN:
cn=admin,dc=example,dc=org - Manager Password:
admin - Name attribute:
displayname(default) - Mail attribute:
mail(default)
Open GitBucket and configure LDAP authentication.
- LDAP server:
ldap - Admin DN:
cn=admin,dc=example,dc=orgwithadmin - Base DN:
dc=example,dc=org - User attribute:
cn - Name attribute:
displayname - Mail attribute:
mail
Open Artifactory and configure LDAP authentication.
- LDAP server:
ldap://ldap/dc=example,dc=org - User DN:
cn={0} - Mail attribute:
mail - Search filter:
(*) - Search base:
dc=example,dc=org - Manage DN:
cn=admin,dc=example,dc=orgwithadmin
SonarQube does not support LDAP authentication.
Mattermost (Community Edition) does not support LDAP authentication.Configure a mail service such as AWS SES and use the email sign up.
Open ownCloud and configure LDAP authentication.
- LDAP server:
ldap:389 - Admin DN:
cn=admin,dc=example,dc=orgwithadmin - Base DN:
dc=example,dc=org
We provide the init script for LSB.Register as follows:
sudo ln -s /opt/devops-compose/init-lsb.sh /etc/init.d/devops-composesudo chkconfig --add devops-compose
It may be best to backup and restore volumes under/var/lib/docker/volumes.
This is an open source software licensed under Apache-2.0.Feel free to open issues or pull requests.
About
DevOps tools on Docker Compose
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Contributors3
Uh oh!
There was an error while loading.Please reload this page.