customize .env
file and set DOCROOT
variable pointing to your wanted web server's document root, ie.
/home/user/projects
docker-compose up
web server available at http://localhost
,
mysql externally available at port 3307
, modify docker-composer.yml
for you needs
https://donatstudios.com/Self-Signed-Certificate-On-macOS-Apache
openssl req -newkey rsa:2048 -x509 -nodes \
-keyout localhost.key \
-new \
-out localhost.crt \
-subj /CN=localhost \
-reqexts SAN \
-extensions SAN \
-config <(cat /System/Library/OpenSSL/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:localhost')) \
-sha256 \
-days 3650
or mkcert https://donatstudios.com/Local-Certificate-On-macOS-Apache