Description
A Docker-based installer and runtime for the Micro web framework, with full HTTP/2, HTTP/3 and HTTPS support.
Getting Started
- If not already done, install Docker Compose (v2.10+)
- Clone repository and remove default
.git
repositorygit clone https://github.com/Micro-PHP/micro-docker.git App && rm -Rf App/.git
- To overwrite the main configuration file
.env
, simply create a new file that will depend on theAPP_ENV
environment variable.env.<$APP_ENV>
- Run
make build
to build fresh images - Run
make up
(the logs will not be displayed in the current shell. Usemake logs
if you want to see the container’s log after it has started.) - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate - Run
make down
to stop the Docker containers.
Features
- Production, development and CI ready
- Automatic HTTPS (in dev and in prod!)
- HTTP/2, HTTP/3 and support
- Built-in Mercure hub
- Native XDebug integration
Docs
Credits
Thanks to Kévin Dunglas for the good work that this environment is based on.