Awesome Open Source
Awesome Open Source

docker

# 
git clone https://github.com/OMGZui/lnmp.git

# .env
WORKER_DIR=
DATA_PATH=

# 
docker-compose up -d php nginx mysql redis mongo

docker

php

telnet 127.0.0.1 9100

nginx

# WORKER_DIR
echo "<?php phpinfo();" > index.php
 127.0.0.1:8000

mysql

  lnmp git:(master)  mysql -h 127.0.0.1 -P 3310 -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.62 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> exit
Bye

redis

  lnmp git:(master)  redis-cli -h 127.0.0.1 -p 6310
127.0.0.1:6310> auth root
OK
127.0.0.1:6310> ping
PONG

  lnmp git:(master)  redis-cli -h 127.0.0.1 -p 6310 -a root
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6310> ping
PONG

mongo

  lnmp git:(master)  mongo 127.0.0.1:27010/admin -u root -p
MongoDB shell version v4.0.4
Enter password:
connecting to: mongodb://127.0.0.1:27010/admin
Implicit session: session { "id" : UUID("f0f210ce-a0a7-42e0-8d08-4ce7105dd10d") }
MongoDB server version: 4.0.5
---
Enable MongoDB's free cloud-based monitoring service, which will then receive and display
metrics about your deployment (disk utilization, CPU, operation statistics, etc).

The monitoring data will be available on a MongoDB website with a unique URL accessible to you
and anyone you share the URL with. MongoDB may use this information to make product
improvements and to suggest MongoDB products and deployment options to you.

To enable free monitoring, run the following command: db.enableFreeMonitoring()
To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---

> show dbs
admin   0.000GB
config  0.000GB
local   0.000GB

docker-compose logs php
docker-compose logs nginx
docker-compose logs mysql
docker-compose logs redis
docker-compose logs mongo

laradock


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Docker (99,628
Dockerfile (28,466
Docker Compose (9,220
Lnmp (344