An open API service indexing awesome lists of open source software.

https://github.com/mhdcodes/docker-lemp

a docker lemp stack
https://github.com/mhdcodes/docker-lemp

Last synced: 2 months ago
JSON representation

a docker lemp stack

Awesome Lists containing this project

README

          

# DOCKER LEMP

- Nginx
- PHP8.3-fpm
- MySQL
- Redis
- Mkcert (Local SSL)

## 🚀 Quickstart

- Install and launch Docker

```bash
git clone git@github.com:mhdcodes/docker-lemp.git
cd docker-lemp
cp .env.example .env
docker-compose up -d
```

## 🔒 Setup SSL

```bash
mkcert -cert-file .docker/certs/server.crt -key-file .docker/certs/server.key example.localhost
```

| Service | Path |
| ------- | --------------------------- |
| Website | `https://example.localhost` |

## ⛺ Using a virtual host

- On your machine, run: `sudo nano /etc/hosts` and add `127.0.0.1 example.localhost`
- Change the server name in `.docker/nginx/conf.d/default` to `example.localhost`
- Run `docker-compose up` again