https://github.com/shevonkuan/lnmp
基于debian的lnmp docker镜像
https://github.com/shevonkuan/lnmp
Last synced: 2 months ago
JSON representation
基于debian的lnmp docker镜像
- Host: GitHub
- URL: https://github.com/shevonkuan/lnmp
- Owner: ShevonKuan
- License: mit
- Created: 2021-03-28T15:44:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-29T01:09:03.000Z (about 4 years ago)
- Last Synced: 2025-01-16T04:10:36.532Z (4 months ago)
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LNMP
基于debian的lnmp docker镜像
LNMP image base on debian
Nginx 1.14
PHP 7.3
MariaDB 10.3# Quick Start
## Download Image
You can use `docker pull` to download the image to your machines.
for amd64
```shell
docker pull shevonkuan/lnmp:latest
```
For amd64, armv8 and i386
```shell
docker pull shevonkuan/lnmp:all_platform_v1.0
```
## Start Container
```shell
docker run -dit \
-p 80:80 \
-p 443:443 \
-p 3306:3306 \
-v /var/www/html:/var/www/html \
-privileged=true \
--name= \
shevonkuan/lnmp:latest
```
Please make sure that you know all the options listed above.- port 80 is used for nginx http.
- port 443 is used for nginx https (you should volumn your certificate and set up the tls in `/etc/nginx/nginx.conf`)
- port 3306 is used for mysql(MariaDB)You can visit `127.0.0.1` to check if your container start successful ly.
## Attach the Shell
```shell
docker exec -it /bin/bash
```## Check LNMP Status
You need to exec a shell then attach it to run the command here.```shell
service nginx status
service php-fpm status
service mysql status
```## About the Config File
You can find Nginx config file at```
/etc/nginx/
```## Other Info
The password of the mysql is null.