Forked from 6uimorais/_Self-Hosted-Kadira-APM-Docker-Compose -Ubuntu.md
Created
September 30, 2017 10:27
-
-
Save duytai/47a92663eaca26e76cc24045941c3be4 to your computer and use it in GitHub Desktop.
Self Hosted Kadira APM - Docker Compose - Ubuntu
$ meteor add meteorhacks:kadira
# code
Kadira.connect('xxxxxxxxxxx', 'xxxxxxxxxxxxxxx', {"endpoint":"http://machineIp:11011"});
#settings.json
{
"kadira": {
"appId": "xxxxxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxx",
"options": {
"endpoint":"http://machineIp:11011"
}
}
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://github.com/mdemri/kadira-docker-compose/blob/bece9ca502f0770ce9af7abda729d081b5147368/docker-compose.yml | |
version: '2' | |
services: | |
kadira-engine: | |
image: vladgolubev/kadira-engine | |
environment: | |
- MONGO_URL=mongodb://mongodb/apm | |
- MONGO_SHARD_URL_one=mongodb://mongodb/apm | |
- PORT=11011 | |
ports: | |
- "11011:11011" | |
restart: always | |
depends_on: | |
- mongodb | |
kadira-rma: | |
image: dkoo761/kadira-rma | |
environment: | |
- MONGO_URL=mongodb://mongodb/apm | |
restart: always | |
depends_on: | |
- mongodb | |
kadira-ui: | |
image: vladgolubev/kadira-ui | |
environment: | |
- MONGO_URL=mongodb://mongodb/apm | |
- MONGO_SHARD_URL_one=mongodb://mongodb/apm | |
ports: | |
- "4000:4000" | |
restart: always | |
depends_on: | |
- mongodb | |
mongodb: | |
image: mongo | |
ports: | |
- "27018:27017" | |
restart: always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://gist.github.com/wdullaer/f1af16bd7e970389bad3 | |
sudo true | |
wget -qO- https://get.docker.com/ | sh | |
COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1` | |
sudo sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose" | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose" | |
cd /tmp | |
git clone https://gist.github.com/76b450a0c986e576e98b.git | |
cd 76b450a0c986e576e98b | |
sudo mv docker-cleanup /usr/local/bin/docker-cleanup | |
sudo chmod +x /usr/local/bin/docker-cleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment