Do not use in production.
| Name | Version | Port |
|---|---|---|
| nginx | latest | 8080 |
| PHP | 8.2 | 9000 |
| MySQL | latest | 3306 |
| Xdebug | latest | 9003 |
| Redis | latest | 6379 |
| MailDev | latest | 1080,1025 |
zip, OPcache, GD, imagick, gmp, pdo_mysql, memcached, BCMath, intl.
- clone this repo into the desired folder and
cdinto it. - Run
docker compose build. - Run
docker compose up -d. - Tips:
- If the folder you cloned to was named
testthen you can run this command to get into e.g. the PHP container:docker exec -it test-php-1 /bin/sh. - By default the user in the docker containers are
UID=1000andGID=1000because that was Linux uses for the default user your a logged in with. - You can rename
.env.exampleto.envand change the values forUIDandGID. - On MAC it usually is
UID=501andGID=501. You can find it by runningidin the terminal.
- If the folder you cloned to was named