Skip to content

Docker container image for hosting laravel applications in

License

Notifications You must be signed in to change notification settings

waryor/laravel-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-php

Docker container image for hosting laravel applications in

How to use this image

About this image

This image is based on php:8.1-alpine.

The following php-extensions are included:

  • bcmath
  • ctype
  • fileinfo
  • json
  • mbstring
  • openssl
  • pdo
  • tokenizer
  • xml
  • dom
  • xmlwriter
  • session

This image comes with preconfigured nginx listening on port 3000.

You should deploy or mount your app to /app since nginx serves /app/public.

Via Docker-compose

version: "3.0"
services:
  laravel:
    image: waryor/laravel-php:latest
    ports:
      - 80:3000
    volumes:
      - /project:/app/

Via Dockerfile

FROM ghcr.io/waryor/laravel-php:latest

# continue here