Skip to content

Commit b0bfa5f

Browse files
ahkuibestlong
authored andcommitted
Add netdata for monitoring server (laradock#1613)
* add netdata container * update document * update document each part separate with 6 * \n * remove unuse file
1 parent dcf6b6d commit b0bfa5f

4 files changed

Lines changed: 116 additions & 44 deletions

File tree

DOCUMENTATION/content/documentation/index.md

Lines changed: 101 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ weight: 3
77

88

99

10+
11+
1012
<a name="List-current-running-Containers"></a>
1113
## List current running Containers
1214
```bash
@@ -134,6 +136,7 @@ More info on Containers rebuilding [here](#Build-Re-build-Containers).
134136

135137

136138

139+
137140
<br>
138141
<a name="Build-Re-build-Containers"></a>
139142
## Build/Re-build Containers
@@ -155,6 +158,7 @@ You might use the `--no-cache` option if you want full rebuilding (`docker-compo
155158

156159

157160

161+
158162
<br>
159163
<a name="Add-Docker-Images"></a>
160164
## Add more Software (Docker Images)
@@ -188,8 +192,6 @@ More [options](https://docs.docker.com/compose/reference/logs/)
188192

189193

190194

191-
192-
193195
<br>
194196
<a name="PHP"></a>
195197

@@ -243,6 +245,8 @@ docker-compose build php-fpm
243245

244246

245247

248+
249+
246250
<br>
247251
<a name="Change-the-PHP-CLI-Version"></a>
248252
## Change the PHP-CLI Version
@@ -271,6 +275,8 @@ docker-compose build workspace
271275

272276

273277

278+
279+
274280
<br>
275281
<a name="Install-xDebug"></a>
276282
## Install xDebug
@@ -346,6 +352,7 @@ Note: If `.php-fpm/xdebug` doesn't execute and gives `Permission Denied` error t
346352

347353

348354

355+
349356
<br>
350357
<a name="Production"></a>
351358

@@ -384,34 +391,14 @@ To learn more about how Docker publishes ports, please read [this excellent post
384391

385392

386393

387-
<br>
388-
<a name="Use-Jenkins"></a>
389-
## Use Jenkins
390394

391-
1) Boot the container `docker-compose up -d jenkins`. To enter the container type `docker-compose exec jenkins bash`.
392-
393-
2) Go to `http://localhost:8090/` (if you didn't change your default port mapping)
394-
395-
3) Authenticate from the web app.
396-
397-
- Default username is `admin`.
398-
- Default password is `docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword`.
399-
400-
(To enter container as root type `docker-compose exec --user root jenkins bash`).
401-
402-
4) Install some plugins.
403-
404-
5) Create your first Admin user, or continue as Admin.
405-
406-
Note: to add user go to `http://localhost:8090/securityRealm/addUser` and to restart it from the web app visit `http://localhost:8090/restart`.
395+
<br>
396+
<a name="Laravel"></a>
407397

408-
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.
409398

410399

411400

412401

413-
<br>
414-
<a name="Laravel"></a>
415402

416403
<a name="Install-Laravel"></a>
417404
## Install Laravel from a Docker Container
@@ -532,6 +519,52 @@ docker-compose up -d php-worker
532519

533520

534521

522+
523+
<br>
524+
<a name="Use-NetData"></a>
525+
## Use NetData
526+
527+
1 - Run the NetData Container (`netdata`) with the `docker-compose up` command. Example:
528+
529+
```bash
530+
docker-compose up -d netdata
531+
```
532+
533+
2 - Open your browser and visit the localhost on port **19999**: `http://localhost:19999`
534+
535+
536+
537+
538+
539+
540+
<br>
541+
<a name="Use-Jenkins"></a>
542+
## Use Jenkins
543+
544+
1) Boot the container `docker-compose up -d jenkins`. To enter the container type `docker-compose exec jenkins bash`.
545+
546+
2) Go to `http://localhost:8090/` (if you didn't chanhed your default port mapping)
547+
548+
3) Authenticate from the web app.
549+
550+
- Default username is `admin`.
551+
- Default password is `docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword`.
552+
553+
(To enter container as root type `docker-compose exec --user root jenkins bash`).
554+
555+
4) Install some plugins.
556+
557+
5) Create your first Admin user, or continue as Admin.
558+
559+
Note: to add user go to `http://localhost:8090/securityRealm/addUser` and to restart it from the web app visit `http://localhost:8090/restart`.
560+
561+
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.
562+
563+
564+
565+
566+
567+
535568
<br>
536569
<a name="Use-Redis"></a>
537570
## Use Redis
@@ -701,6 +734,8 @@ docker-compose up -d adminer
701734

702735

703736

737+
738+
704739
<br>
705740
<a name="Use-Portainer"></a>
706741
## Use Portainer
@@ -717,6 +752,7 @@ docker-compose up -d portainer
717752

718753

719754

755+
720756
<br>
721757
<a name="Use-pgAdmin"></a>
722758
## Use PgAdmin
@@ -869,6 +905,10 @@ docker-compose up -d rethinkdb
869905
- set the `DB_DATABASE` to `database`.
870906

871907

908+
909+
910+
911+
872912
<br>
873913
<a name="Use-Minio"></a>
874914
## Use Minio
@@ -901,6 +941,9 @@ docker-compose up -d minio
901941

902942

903943

944+
945+
946+
904947
<br>
905948
<a name="Use-AWS"></a>
906949
## Use AWS
@@ -920,6 +963,9 @@ docker-compose up -d aws
920963

921964

922965

966+
967+
968+
923969
<br>
924970
<a name="Use-Grafana"></a>
925971
## Use Grafana
@@ -938,6 +984,9 @@ docker-compose up -d grafana
938984

939985

940986

987+
988+
989+
941990
<br>
942991
<a name="CodeIgniter"></a>
943992

@@ -959,6 +1008,11 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple
9591008
3 - Re-build your PHP-FPM Container `docker-compose build php-fpm`.
9601009

9611010

1011+
1012+
1013+
1014+
1015+
<br>
9621016
<a name="Install-Symfony"></a>
9631017
## Install Symfony
9641018

@@ -972,6 +1026,11 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple
9721026

9731027
5 - Visit `symfony.test`
9741028

1029+
1030+
1031+
1032+
1033+
9751034
<br>
9761035
<a name="Misc"></a>
9771036
## Miscellaneous
@@ -1055,6 +1114,11 @@ ssh -o PasswordAuthentication=no \
10551114

10561115
To login as root, replace laradock@locahost with root@localhost.
10571116

1117+
1118+
1119+
1120+
1121+
10581122
<br>
10591123
<a name="Change-the-MySQL-Version"></a>
10601124
## Change the (MySQL) Version
@@ -1109,6 +1173,7 @@ The default username and password for the root MySQL user are `root` and `root `
11091173

11101174

11111175

1176+
11121177
<br>
11131178
<a name="Create-Multiple-Databases"></a>
11141179
## Create Multiple Databases (MySQL)
@@ -1123,6 +1188,8 @@ GRANT ALL ON `your_db_1`.* TO 'mysql_user'@'%' ;
11231188

11241189

11251190

1191+
1192+
11261193
<br>
11271194
<a name="Change-MySQL-port"></a>
11281195
## Change MySQL port
@@ -1311,6 +1378,7 @@ Linuxbrew is a package manager for Linux. It is the Linux version of MacOS Homeb
13111378

13121379

13131380

1381+
13141382
<br>
13151383
<a name="Common-Aliases"></a>
13161384
<br>
@@ -1323,6 +1391,7 @@ You are free to modify the `aliases.sh` as you see fit, adding your own aliases
13231391

13241392

13251393

1394+
13261395
<br>
13271396
<a name="Install-Aerospike-Extension"></a>
13281397
## Install Aerospike extension
@@ -1367,7 +1436,6 @@ e) set it to `true`
13671436

13681437

13691438

1370-
13711439
<br>
13721440
<a name="phpstorm-debugging"></a>
13731441
## PHPStorm Debugging Guide
@@ -1380,7 +1448,6 @@ Remote debug Laravel web and phpunit tests.
13801448

13811449

13821450

1383-
13841451
<br>
13851452
<a name="keep-tracking-Laradock"></a>
13861453
## Keep track of your Laradock changes
@@ -1395,7 +1462,6 @@ Remote debug Laravel web and phpunit tests.
13951462

13961463

13971464

1398-
13991465
<br>
14001466
<a name="upgrading-laradock"></a>
14011467
## Upgrading Laradock
@@ -1416,9 +1482,6 @@ Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requ
14161482

14171483

14181484

1419-
1420-
1421-
14221485
<br>
14231486
<a name="Speed-MacOS"></a>
14241487
## Improve speed on MacOS
@@ -1447,6 +1510,9 @@ Quick Setup giude, (we recommend you check their docs)
14471510

14481511

14491512

1513+
1514+
1515+
14501516
<br>
14511517
<a name="Docker-Sync"></a>
14521518
### Workaround B: using d4m-nfs
@@ -1536,8 +1602,6 @@ Visit the [docker-sync documentation](https://github.com/EugenMayer/docker-sync/
15361602

15371603

15381604

1539-
1540-
15411605
<br>
15421606

15431607
### B.2: using the d4m-nfs tool
@@ -1584,16 +1648,6 @@ docker-compose up ...
15841648

15851649

15861650

1587-
1588-
1589-
1590-
1591-
1592-
1593-
1594-
1595-
1596-
15971651
<br>
15981652
<a name="Common-Problems"></a>
15991653
## Common Problems
@@ -1605,7 +1659,6 @@ docker-compose up ...
16051659

16061660

16071661

1608-
16091662
<br>
16101663
## I see a blank (white) page instead of the Laravel 'Welcome' page!
16111664

@@ -1619,6 +1672,7 @@ sudo chmod -R 777 storage bootstrap/cache
16191672

16201673

16211674

1675+
16221676
<br>
16231677
## I see "Welcome to nginx" instead of the Laravel App!
16241678

@@ -1628,6 +1682,7 @@ Use `http://127.0.0.1` instead of `http://localhost` in your browser.
16281682

16291683

16301684

1685+
16311686
<br>
16321687
## I see an error message containing `address already in use` or `port is already allocated`
16331688

@@ -1637,6 +1692,7 @@ Make sure the ports for the services that you are trying to run (22, 80, 443, 33
16371692

16381693

16391694

1695+
16401696
<br>
16411697
## I get NGINX error 404 Not Found on Windows.
16421698

@@ -1649,6 +1705,7 @@ Make sure the ports for the services that you are trying to run (22, 80, 443, 33
16491705

16501706

16511707

1708+
16521709
<br>
16531710
## The time in my services does not match the current time
16541711

@@ -1659,6 +1716,7 @@ Make sure the ports for the services that you are trying to run (22, 80, 443, 33
16591716

16601717

16611718

1719+
16621720
<br>
16631721
## I get MySQL connection refused
16641722

0 commit comments

Comments
 (0)