Simple Laravel docker image that works!
5.7K
Simple Laravel docker image that works! Based on dunglas/frankenphp.
Note: This setup can also be used for non-Laravel projects.
See: https://hub.docker.com/r/oozman/php/tags
frankenphp imageinstall-php-extensions enabledRun this command in the root directory of your Laravel project:
docker run -d -p 8080:80 -v $(pwd):/app oozman/php:8.3-frankenphp
Visit your laravel app at http://localhost:8080
By default, this image is served over HTTP. To enable HTTPS, you can set the following environment variables:
# Be sure to replace "your-domain-name.example.com" by your domain name
ENV SERVER_NAME=your-domain-name.example.com
# If you want to disable HTTPS, use this value instead:
ENV SERVER_NAME=:80
To install and enable PHP extension, use install-php-extensions command.
Example:
RUN install-php-extensions redis ...
Content type
Image
Digest
sha256:ab3f7e9ba…
Size
125.9 MB
Last updated
over 1 year ago
docker pull oozman/php:8.3-frankenphp-arm