This is a image for you to quickly start running a Laravel application in docker.
Composer
comes with the image.
latest
(Dockerfile) - PHP-FPM 7.2 alpine7.3
(Dockerfile) - PHP-FPM 7.3 alpine7.2
(Dockerfile) - PHP-FPM 7.2 alpine
1.0
(Dockerfile) - PHP-FPM 7.0 alpine
- bcmath
- curl
- gettext
- gd
- exif
- iconv
- intl
- ldap
- mbstring
- opcache
- pdo_mysql
- pdo_pgsql
- pdo_dblib
- soap
- sockets
- zip
- grpc
- memcached
This image supports the environment variables below:
ENABLE_CRON_JOB: false
ENABLE_LARAVEL_WORKER: false
ENABLE_LARAVEL_HORIZON: false
/app
- The directory the application should be mounted to
docker-composer.yml
version: '3'
services:
php:
image: chcjonathanguo/laravel-docker-prod:latest
volumes:
- ./:/app:delegated
ports:
- '8000:80'
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app:delegated
nginx:
image: nginx:latest
depends_on:
- php
volumes:
- ./:/app:delegated
- ./docker-config/dev/nginx/default.conf:/etc/nginx/conf.d/default.conf