https://github.com/alireaza/lep
LEP stack (Linux, Nginx, PHP)
https://github.com/alireaza/lep
docker docker-compose nginx php shell
Last synced: 3 months ago
JSON representation
LEP stack (Linux, Nginx, PHP)
- Host: GitHub
- URL: https://github.com/alireaza/lep
- Owner: alireaza
- License: mit
- Created: 2022-01-06T14:41:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T06:39:13.000Z (over 3 years ago)
- Last Synced: 2025-03-31T05:28:49.372Z (about 1 year ago)
- Topics: docker, docker-compose, nginx, php, shell
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linux, Nginx, PHP
The term **LEP** is an acronym that represents the configuration of a **L**inux operating system with an nginx (pronounced **E**ngine-X, hence the E in the acronym) web server and dynamic content processed by **P**HP.
## Install
Via Composer
```bash
$ git clone https://github.com/alireaza/lep.git alireaza
$ cd alireaza
$ CURRENT_UID=$(id -u):$(id -g) docker-compose up --detach --build
```
### Some useful commands
#### Start services
```bash
$ CURRENT_UID=$(id -u):$(id -g) docker-compose up --detach --build
```
#### Stop services
```bash
$ CURRENT_UID=$(id -u):$(id -g) docker-compose down
```
#### Fix services permissions
```bash
$ sudo chown -R $(id -u):$(id -g) {./nginx/,./php/,./src/}
```
#### Nginx Log
```bash
$ docker-compose logs --tail 100 --follow nginx
```
#### Nginx CLI
```bash
$ docker-compose exec nginx nginx -h
```
#### PHP Log
```bash
$ docker-compose logs --tail 100 --follow php
```
#### PHP CLI
```bash
$ docker-compose exec --user $(id -u):$(id -g) php php -h
```
#### Composer CLI
```bash
$ docker-compose exec --user $(id -u):$(id -g) php composer -h
```
#### Run dbgpProxy
```bash
$ docker-compose exec php /usr/bin/dbgpProxy --server 0.0.0.0:9003 --client 0.0.0.0:9001
```
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.