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
- Host: GitHub
- URL: https://github.com/mhdcodes/docker-lemp
- Owner: mhdcodes
- Created: 2024-10-18T22:24:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T17:27:04.000Z (over 1 year ago)
- Last Synced: 2025-01-27T13:12:32.025Z (over 1 year ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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