Docker container image for hosting laravel applications in
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
.
version: "3.0"
services:
laravel:
image: waryor/laravel-php:latest
ports:
- 80:3000
volumes:
- /project:/app/
FROM ghcr.io/waryor/laravel-php:latest
# continue here