- All in docker
- HTTPS support
- Single config file
-
Install mkcert:
brew install mkcert
-
Config your sites in
site.json
domain
is the domain name of your site, eg:comiru.test
- Remind: need to add to
/etc/hosts
file, eg:comiru.test 127.0.0.1
- Remind: need to add to
root
is the project public directory- Remind: need to mount into container in docker-compose.yml, eg:
$HOME/poper
- Remind: need to mount into container in docker-compose.yml, eg:
fpm
is the PHP-FPM service name in docker-compose.ymlaliases
is the domain aliases of your site, eg:["www.comiru.test", "sso.comiru.test"]
secure
is the HTTPS support, default istrue
-
Generate SSL certificates
python3 generator.py --certs
-
Start docker containers
docker compose up -d
-
Visit your site in browser
- Site list: http://127.0.0.1
- http://php73.test
- https://php82.test