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
.gitrepositorygit 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_ENVenvironment variable.env.<$APP_ENV> - Run
make buildto build fresh images - Run
make up(the logs will not be displayed in the current shell. Usemake logsif you want to see the container’s log after it has started.) - Open
https://localhostin your favorite web browser and accept the auto-generated TLS certificate - Run
make downto 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.