Skip to content

Simple Laravel docker that works! Based on alpine linux.

Notifications You must be signed in to change notification settings

oozman/laravel-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-docker

Simple Laravel docker image that works! Based on dunglas/frankenphp.

Note: This setup can also be used for non-Laravel projects.

Docker Hub

See: https://hub.docker.com/r/oozman/php/tags

Features

  • Light weight, based on frankenphp image
  • Caddy
  • PHP 8.3
  • Supercronic
  • Supervisor
  • install-php-extensions enabled

Getting Started

Run 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

SSL Feature

By default, this image is served over HTTP. To enable HTTPS, you can set the following environment variables:

Enable HTTPS

# Be sure to replace "your-domain-name.example.com" by your domain name
ENV SERVER_NAME=your-domain-name.example.com

Disable HTTPS

# If you want to disable HTTPS, use this value instead:
ENV SERVER_NAME=:80

Install PHP extensions

To install and enable PHP extension, use install-php-extensions command.

Example:

RUN install-php-extensions redis ...

About

Simple Laravel docker that works! Based on alpine linux.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published