Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Akmal Harith akmalharith

🎯
Focusing
  • Kuala Lumpur, Malaysia
View GitHub Profile
@akmalharith
akmalharith / deploy-jdc.sh
Last active Jul 3, 2020
Atlassian testing stack
View deploy-jdc.sh
# 2-node Jira with HAProxy LB
docker run -d \
--name jdc \
--hostname jdc \
-v ~/Applications/haproxy/usr/local/etc:/usr/local/etc/haproxy \
--network=atl \
-e HTTP_NODES=jira_1:8080,jira_2:8080,jira_3:8080 \
-p 80:80 \
-p 443:443 \
@akmalharith
akmalharith / docker-compose.yml
Last active Jul 1, 2020
docker-compose.yml for Atlassian Jira with Postgres DB
View docker-compose.yml
version: '3'
services:
postgres-j:
image: postgres:9.6
container_name: postgresql-jira
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- 5432:5432
expose:
@akmalharith
akmalharith / wordpress-bootstrap.sh
Last active Jun 18, 2020
Bootstrap to install Wordpress and mount it on EFS
View wordpress-bootstrap.sh
#!/bin/bash
yum update -y
yum install -y httpd24 php70 mysql php70-mysqlnd
service httpd start
chkconfig httpd on
# Replace EFS FQDN here
echo "fs-d5c8a356.efs.us-east-1.amazonaws.com:/ /var/www/html nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0" >> /etc/fstab
mount -a
You can’t perform that action at this time.