{"id":13617884,"url":"https://github.com/int128/devops-compose","last_synced_at":"2025-03-09T07:31:57.526Z","repository":{"id":138190744,"uuid":"39363925","full_name":"int128/devops-compose","owner":"int128","description":"DevOps tools on Docker Compose","archived":true,"fork":false,"pushed_at":"2020-07-04T12:09:56.000Z","size":40,"stargazers_count":45,"open_issues_count":1,"forks_count":31,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-17T15:45:04.529Z","etag":null,"topics":["confluence","docker-compose","gitbucket","jenkins","jira","mattermost","nexus","owncloud","sonarqube"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/int128.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-07-20T04:55:06.000Z","updated_at":"2024-12-12T08:42:48.000Z","dependencies_parsed_at":"2024-03-31T00:40:29.334Z","dependency_job_id":null,"html_url":"https://github.com/int128/devops-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fdevops-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fdevops-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fdevops-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fdevops-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/int128","download_url":"https://codeload.github.com/int128/devops-compose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242661652,"owners_count":20165329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["confluence","docker-compose","gitbucket","jenkins","jira","mattermost","nexus","owncloud","sonarqube"],"created_at":"2024-08-01T20:01:49.800Z","updated_at":"2025-03-09T07:31:57.201Z","avatar_url":"https://github.com/int128.png","language":"Shell","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# DevOps Compose [![CircleCI](https://circleci.com/gh/int128/devops-compose.svg?style=shield)](https://circleci.com/gh/int128/devops-compose)\n\nA compose of following Docker containers:\n\n* Crowd\n* JIRA software\n* Confluence\n* GitBucket\n* Jenkins\n* Nexus\n* SonarQube\n* Mattermost\n* ownCloud\n* OpenLDAP\n\n\n## Getting Started\n\nCreate the following stack.\n\nComponent | Note\n----------|-----\nRDS       | Stores databases. Recommeded for easy backup and migration.\nEBS#1     | Stores `/var/lib/docker`.\nEBS#2     | Stores persistent volumes. Recommeded for easy backup and migration.\nEC2       | -\nACM       | Provides a SSL certificate.\nALB       | Provides a SSL termination.\nRoute53   | -\n\n### RDS database\n\nCreate a PostgreSQL instance.\nIt is recommended to use managed services such as Amazon RDS or Google Cloud SQL for maintenancebility reason.\nMySQL is available and works as well but [PostgreSQL is recommended for JIRA](https://confluence.atlassian.com/adminjiraserver074/supported-platforms-881683157.html).\n\nInitialize databases and users by executing [`init-postgresql.sql`](/init-postgresql.sql).\n\n### EC2 Instance\n\nCreate following EC2 instance and EBS volumes:\n\n- EC2 instance\n- EBS volume attached to the instance on `/var/lib/docker`\n- EBS volume attached to the instance on `/persistent_volumes`\n\nConnect to the instance and do followings:\n\n```bash\n# Configure fstab\necho '/dev/xvdb /var/lib/docker ext4 defaults,nofail 0 2' | sudo tee -a /etc/fstab\necho '/dev/xvdc /persistent_volumes ext4 defaults,nofail 0 2' | sudo tee -a /etc/fstab\n\n# Create swap space\nsudo fallocate -l 4G /swapfile\nsudo chmod 600 /swapfile\nsudo mkswap /swapfile\nsudo swapon /swapfile\necho '/swapfile swap swap defaults 0 0' | sudo tee -a /etc/fstab\n\n# Install Docker Compose\nsudo yum install -y docker\nsudo curl -L -o /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/1.12.0/docker-compose-Linux-x86_64\nsudo chmod +x /usr/local/bin/docker-compose\n\n# Make sure Docker service is running\nsudo docker version\nsudo docker-compose version\n```\n\nRun containers. This may take a few minutes.\n\n```bash\ncd /persistent_volumes\ngit clone https://github.com/int128/devops-compose.git\ncd /persistent_volumes/devops-compose\n\n# Environment specific values\necho 'DATABASE_HOST=xxxxx.xxxxx.rds.amazonaws.com' \u003e\u003e .env\necho 'REVERSE_PROXY_DOMAIN_NAME=example.com' \u003e\u003e .env\necho 'PERSISTENT_VOLUMES_ROOT=/persistent_volumes' \u003e\u003e .env\n\ndocker-compose build\ndocker-compose up -d\n```\n\n### ALB, Route53 and ACM\n\nRequest a certificate for a wildcard domain on ACM.\n\nCreate an ALB and target group for the instance.\n\nCreate a wildcard record on the hosted zone.\n\n```\nA *.example.com. \u003cELB endpoint\u003e.\n```\n\n### Configure auto launch\n\n```sh\nsudo ln -s /persistent_volumes/devops-compose/init-lsb.sh /etc/init.d/devops-compose\nsudo chkconfig --add devops-compose\n```\n\n\n## Setup DevOps tools\n\nOpen https://devops.example.com (concatenate `devops` and the domain).\n\n### Setup Crowd\n\nOpen Crowd and configure the database connection.\n\n- Database server: Hostname of the database instance\n- Type: PostgreSQL\n- Database name: `crowd`\n- User: `crowd`\n- Password: `crowd`\n\nAdd the LDAP directory.\n\n- URL: `ldap://ldap:389/`\n- Base DN: `dc=example,dc=org`\n- Username: `cn=admin,dc=example,dc=org`\n- Password: `admin`\n\n### Setup JIRA\n\nOpen JIRA and configure the database connection.\n\n- Database server: Hostname of the database instance\n- Type: PostgreSQL\n- Database name: `jira`\n- User: `jira`\n- Password: `jira`\n\nAdd the Crowd server.\n\n### Setup Confluence\n\nOpen Confluence and configure the database connection.\n\n- Database server: Hostname of the database instance\n- Type: PostgreSQL\n- Database name: `confluence`\n- User: `confluence`\n- Password: `confluence`\n\nAdd the Crowd server.\n\n### Setup Jenkins\n\nGet the initial admin password by following command:\n\n```sh\ndocker exec devopscompose_jenkins_1 cat /var/jenkins_home/secrets/initialAdminPassword\n```\n\nOpen Jenkins and configure LDAP authentication.\n\n- Server: `ldap`\n- Root DN: `dc=example,dc=org`\n- User search base: (empty)\n- User search filter: `cn={0}`\n- Group search base: (empty)\n- Group search filter: `cn={0}`\n- Group membership: Search for LDAP groups containing user, filter: `uniqueMember={0}`\n- Manager DN: `cn=admin,dc=example,dc=org`\n- Manager Password: `admin`\n- Name attribute: `displayname` (default)\n- Mail attribute: `mail` (default)\n\n### Setup GitBucket\n\nOpen GitBucket and configure LDAP authentication.\n\n- LDAP server: `ldap`\n- Admin DN: `cn=admin,dc=example,dc=org` with `admin`\n- Base DN: `dc=example,dc=org`\n- User attribute: `cn`\n- Name attribute: `displayname`\n- Mail attribute: `mail`\n\n### Setup Nexus\n\nOpen Nexus and configure LDAP authentication.\n\n- LDAP server: `ldap://ldap:389`\n- Search base: `dc=example,dc=org`\n- Username: `cn=admin,dc=example,dc=org`\n- Password: `admin`\n- Configuration template: Generic Ldap Server\n- Object class: `inetOrgPerson` (default)\n- User ID attribute: `cn`\n- Name attribute: `displayname`\n- Mail attribute: `mail`\n- Group type: Dynamic\n- Group member of attribute: `memberOf` (default)\n\n### Setup SonarQube\n\nSonarQube does not support LDAP authentication.\n\n### Setup Mattermost\n\nMattermost (Community Edition) does not support LDAP authentication.\nConfigure a mail service such as AWS SES and use the email sign up.\n\n### ownCloud\n\nOpen ownCloud and configure LDAP authentication.\n\n- LDAP server: `ldap:389`\n- Admin DN: `cn=admin,dc=example,dc=org` with `admin`\n- Base DN: `dc=example,dc=org`\n\n\n## Contribution\n\nThis is an open source software licensed under Apache-2.0.\nFeel free to open issues or pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fdevops-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fint128%2Fdevops-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fdevops-compose/lists"}