Add netdata for monitoring server (#1613)
* add netdata container * update document * update document each part separate with 6 * \n * remove unuse file
This commit is contained in:
parent
dcf6b6d9ac
commit
b0bfa5f1d3
|
@ -7,6 +7,8 @@ weight: 3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="List-current-running-Containers"></a>
|
<a name="List-current-running-Containers"></a>
|
||||||
## List current running Containers
|
## List current running Containers
|
||||||
```bash
|
```bash
|
||||||
|
@ -134,6 +136,7 @@ More info on Containers rebuilding [here](#Build-Re-build-Containers).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Build-Re-build-Containers"></a>
|
<a name="Build-Re-build-Containers"></a>
|
||||||
## Build/Re-build Containers
|
## Build/Re-build Containers
|
||||||
|
@ -155,6 +158,7 @@ You might use the `--no-cache` option if you want full rebuilding (`docker-compo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Add-Docker-Images"></a>
|
<a name="Add-Docker-Images"></a>
|
||||||
## Add more Software (Docker Images)
|
## Add more Software (Docker Images)
|
||||||
|
@ -188,8 +192,6 @@ More [options](https://docs.docker.com/compose/reference/logs/)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="PHP"></a>
|
<a name="PHP"></a>
|
||||||
|
|
||||||
|
@ -243,6 +245,8 @@ docker-compose build php-fpm
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Change-the-PHP-CLI-Version"></a>
|
<a name="Change-the-PHP-CLI-Version"></a>
|
||||||
## Change the PHP-CLI Version
|
## Change the PHP-CLI Version
|
||||||
|
@ -271,6 +275,8 @@ docker-compose build workspace
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Install-xDebug"></a>
|
<a name="Install-xDebug"></a>
|
||||||
## Install xDebug
|
## Install xDebug
|
||||||
|
@ -346,6 +352,7 @@ Note: If `.php-fpm/xdebug` doesn't execute and gives `Permission Denied` error t
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Production"></a>
|
<a name="Production"></a>
|
||||||
|
|
||||||
|
@ -384,35 +391,15 @@ To learn more about how Docker publishes ports, please read [this excellent post
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<a name="Use-Jenkins"></a>
|
|
||||||
## Use Jenkins
|
|
||||||
|
|
||||||
1) Boot the container `docker-compose up -d jenkins`. To enter the container type `docker-compose exec jenkins bash`.
|
|
||||||
|
|
||||||
2) Go to `http://localhost:8090/` (if you didn't change your default port mapping)
|
|
||||||
|
|
||||||
3) Authenticate from the web app.
|
|
||||||
|
|
||||||
- Default username is `admin`.
|
|
||||||
- Default password is `docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword`.
|
|
||||||
|
|
||||||
(To enter container as root type `docker-compose exec --user root jenkins bash`).
|
|
||||||
|
|
||||||
4) Install some plugins.
|
|
||||||
|
|
||||||
5) Create your first Admin user, or continue as Admin.
|
|
||||||
|
|
||||||
Note: to add user go to `http://localhost:8090/securityRealm/addUser` and to restart it from the web app visit `http://localhost:8090/restart`.
|
|
||||||
|
|
||||||
You may wanna change the default security configuration, so go to `http://localhost:8090/configureSecurity/` under Authorization and choosing "Anyone can do anything" or "Project-based Matrix Authorization Strategy" or anything else.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Laravel"></a>
|
<a name="Laravel"></a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="Install-Laravel"></a>
|
<a name="Install-Laravel"></a>
|
||||||
## Install Laravel from a Docker Container
|
## Install Laravel from a Docker Container
|
||||||
|
|
||||||
|
@ -532,6 +519,52 @@ docker-compose up -d php-worker
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Use-NetData"></a>
|
||||||
|
## Use NetData
|
||||||
|
|
||||||
|
1 - Run the NetData Container (`netdata`) with the `docker-compose up` command. Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d netdata
|
||||||
|
```
|
||||||
|
|
||||||
|
2 - Open your browser and visit the localhost on port **19999**: `http://localhost:19999`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Use-Jenkins"></a>
|
||||||
|
## Use Jenkins
|
||||||
|
|
||||||
|
1) Boot the container `docker-compose up -d jenkins`. To enter the container type `docker-compose exec jenkins bash`.
|
||||||
|
|
||||||
|
2) Go to `http://localhost:8090/` (if you didn't chanhed your default port mapping)
|
||||||
|
|
||||||
|
3) Authenticate from the web app.
|
||||||
|
|
||||||
|
- Default username is `admin`.
|
||||||
|
- Default password is `docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword`.
|
||||||
|
|
||||||
|
(To enter container as root type `docker-compose exec --user root jenkins bash`).
|
||||||
|
|
||||||
|
4) Install some plugins.
|
||||||
|
|
||||||
|
5) Create your first Admin user, or continue as Admin.
|
||||||
|
|
||||||
|
Note: to add user go to `http://localhost:8090/securityRealm/addUser` and to restart it from the web app visit `http://localhost:8090/restart`.
|
||||||
|
|
||||||
|
You may wanna change the default security configuration, so go to `http://localhost:8090/configureSecurity/` under Authorization and choosing "Anyone can do anything" or "Project-based Matrix Authorization Strategy" or anything else.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Use-Redis"></a>
|
<a name="Use-Redis"></a>
|
||||||
## Use Redis
|
## Use Redis
|
||||||
|
@ -701,6 +734,8 @@ docker-compose up -d adminer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Use-Portainer"></a>
|
<a name="Use-Portainer"></a>
|
||||||
## Use Portainer
|
## Use Portainer
|
||||||
|
@ -717,6 +752,7 @@ docker-compose up -d portainer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Use-pgAdmin"></a>
|
<a name="Use-pgAdmin"></a>
|
||||||
## Use PgAdmin
|
## Use PgAdmin
|
||||||
|
@ -869,6 +905,10 @@ docker-compose up -d rethinkdb
|
||||||
- set the `DB_DATABASE` to `database`.
|
- set the `DB_DATABASE` to `database`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Use-Minio"></a>
|
<a name="Use-Minio"></a>
|
||||||
## Use Minio
|
## Use Minio
|
||||||
|
@ -901,6 +941,9 @@ docker-compose up -d minio
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Use-AWS"></a>
|
<a name="Use-AWS"></a>
|
||||||
## Use AWS
|
## Use AWS
|
||||||
|
@ -920,6 +963,9 @@ docker-compose up -d aws
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Use-Grafana"></a>
|
<a name="Use-Grafana"></a>
|
||||||
## Use Grafana
|
## Use Grafana
|
||||||
|
@ -938,6 +984,9 @@ docker-compose up -d grafana
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="CodeIgniter"></a>
|
<a name="CodeIgniter"></a>
|
||||||
|
|
||||||
|
@ -959,6 +1008,11 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple
|
||||||
3 - Re-build your PHP-FPM Container `docker-compose build php-fpm`.
|
3 - Re-build your PHP-FPM Container `docker-compose build php-fpm`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
<a name="Install-Symfony"></a>
|
<a name="Install-Symfony"></a>
|
||||||
## Install Symfony
|
## Install Symfony
|
||||||
|
|
||||||
|
@ -972,6 +1026,11 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple
|
||||||
|
|
||||||
5 - Visit `symfony.test`
|
5 - Visit `symfony.test`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Misc"></a>
|
<a name="Misc"></a>
|
||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
|
@ -1055,6 +1114,11 @@ ssh -o PasswordAuthentication=no \
|
||||||
|
|
||||||
To login as root, replace laradock@locahost with root@localhost.
|
To login as root, replace laradock@locahost with root@localhost.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Change-the-MySQL-Version"></a>
|
<a name="Change-the-MySQL-Version"></a>
|
||||||
## Change the (MySQL) Version
|
## Change the (MySQL) Version
|
||||||
|
@ -1109,6 +1173,7 @@ The default username and password for the root MySQL user are `root` and `root `
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Create-Multiple-Databases"></a>
|
<a name="Create-Multiple-Databases"></a>
|
||||||
## Create Multiple Databases (MySQL)
|
## Create Multiple Databases (MySQL)
|
||||||
|
@ -1123,6 +1188,8 @@ GRANT ALL ON `your_db_1`.* TO 'mysql_user'@'%' ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Change-MySQL-port"></a>
|
<a name="Change-MySQL-port"></a>
|
||||||
## Change MySQL port
|
## Change MySQL port
|
||||||
|
@ -1311,6 +1378,7 @@ Linuxbrew is a package manager for Linux. It is the Linux version of MacOS Homeb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Common-Aliases"></a>
|
<a name="Common-Aliases"></a>
|
||||||
<br>
|
<br>
|
||||||
|
@ -1323,6 +1391,7 @@ You are free to modify the `aliases.sh` as you see fit, adding your own aliases
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Install-Aerospike-Extension"></a>
|
<a name="Install-Aerospike-Extension"></a>
|
||||||
## Install Aerospike extension
|
## Install Aerospike extension
|
||||||
|
@ -1367,7 +1436,6 @@ e) set it to `true`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="phpstorm-debugging"></a>
|
<a name="phpstorm-debugging"></a>
|
||||||
## PHPStorm Debugging Guide
|
## PHPStorm Debugging Guide
|
||||||
|
@ -1380,7 +1448,6 @@ Remote debug Laravel web and phpunit tests.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="keep-tracking-Laradock"></a>
|
<a name="keep-tracking-Laradock"></a>
|
||||||
## Keep track of your Laradock changes
|
## Keep track of your Laradock changes
|
||||||
|
@ -1395,7 +1462,6 @@ Remote debug Laravel web and phpunit tests.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="upgrading-laradock"></a>
|
<a name="upgrading-laradock"></a>
|
||||||
## Upgrading Laradock
|
## Upgrading Laradock
|
||||||
|
@ -1416,9 +1482,6 @@ Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requ
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Speed-MacOS"></a>
|
<a name="Speed-MacOS"></a>
|
||||||
## Improve speed on MacOS
|
## Improve speed on MacOS
|
||||||
|
@ -1447,6 +1510,9 @@ Quick Setup giude, (we recommend you check their docs)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Docker-Sync"></a>
|
<a name="Docker-Sync"></a>
|
||||||
### Workaround B: using d4m-nfs
|
### Workaround B: using d4m-nfs
|
||||||
|
@ -1536,8 +1602,6 @@ Visit the [docker-sync documentation](https://github.com/EugenMayer/docker-sync/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
### B.2: using the d4m-nfs tool
|
### B.2: using the d4m-nfs tool
|
||||||
|
@ -1584,16 +1648,6 @@ docker-compose up ...
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Common-Problems"></a>
|
<a name="Common-Problems"></a>
|
||||||
## Common Problems
|
## Common Problems
|
||||||
|
@ -1605,7 +1659,6 @@ docker-compose up ...
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
## I see a blank (white) page instead of the Laravel 'Welcome' page!
|
## I see a blank (white) page instead of the Laravel 'Welcome' page!
|
||||||
|
|
||||||
|
@ -1619,6 +1672,7 @@ sudo chmod -R 777 storage bootstrap/cache
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
## I see "Welcome to nginx" instead of the Laravel App!
|
## I see "Welcome to nginx" instead of the Laravel App!
|
||||||
|
|
||||||
|
@ -1628,6 +1682,7 @@ Use `http://127.0.0.1` instead of `http://localhost` in your browser.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
## I see an error message containing `address already in use` or `port is already allocated`
|
## I see an error message containing `address already in use` or `port is already allocated`
|
||||||
|
|
||||||
|
@ -1637,6 +1692,7 @@ Make sure the ports for the services that you are trying to run (22, 80, 443, 33
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
## I get NGINX error 404 Not Found on Windows.
|
## I get NGINX error 404 Not Found on Windows.
|
||||||
|
|
||||||
|
@ -1649,6 +1705,7 @@ Make sure the ports for the services that you are trying to run (22, 80, 443, 33
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
## The time in my services does not match the current time
|
## The time in my services does not match the current time
|
||||||
|
|
||||||
|
@ -1659,6 +1716,7 @@ Make sure the ports for the services that you are trying to run (22, 80, 443, 33
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
## I get MySQL connection refused
|
## I get MySQL connection refused
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ Beanstalkd - RabbitMQ - PHP Worker
|
||||||
- **Queueing Management:**
|
- **Queueing Management:**
|
||||||
Beanstalkd Console - RabbitMQ Console
|
Beanstalkd Console - RabbitMQ Console
|
||||||
- **Random Tools:**
|
- **Random Tools:**
|
||||||
HAProxy - Certbot - Blackfire - Selenium - Jenkins - ElasticSearch - Kibana - Grafana - Mailhog - MailDev - Minio - Varnish - Swoole - Portainer - Laravel Echo...
|
HAProxy - Certbot - Blackfire - Selenium - Jenkins - ElasticSearch - Kibana - Grafana - Mailhog - MailDev - Minio - Varnish - Swoole - NetData - Portainer - Laravel Echo...
|
||||||
|
|
||||||
Laradock introduces the **Workspace** Image, as a development environment.
|
Laradock introduces the **Workspace** Image, as a development environment.
|
||||||
It contains a rich set of helpful tools, all pre-configured to work and integrate with almost any combination of Containers and tools you may choose.
|
It contains a rich set of helpful tools, all pre-configured to work and integrate with almost any combination of Containers and tools you may choose.
|
||||||
|
|
|
@ -715,3 +715,14 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 9010:9000
|
- 9010:9000
|
||||||
|
|
||||||
|
### NetData ################################################
|
||||||
|
netdata:
|
||||||
|
image: titpetric/netdata:latest
|
||||||
|
cap_add:
|
||||||
|
- SYS_PTRACE
|
||||||
|
volumes:
|
||||||
|
- /:/host:ro
|
||||||
|
ports:
|
||||||
|
- "${NETDATA_PORT}:19999"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
|
@ -357,3 +357,6 @@ LARAVEL_ECHO_SERVER_PORT=6001
|
||||||
SOLR_VERSION=5.5
|
SOLR_VERSION=5.5
|
||||||
SOLR_PORT=8983
|
SOLR_PORT=8983
|
||||||
SOLR_DATAIMPORTHANDLER_MYSQL=false
|
SOLR_DATAIMPORTHANDLER_MYSQL=false
|
||||||
|
|
||||||
|
### NETDATA ###############################################
|
||||||
|
NETDATA_PORT=19999
|
||||||
|
|
Loading…
Reference in New Issue