Pre-built Laravel Sail Runtimes
50K+
One of the Laravel Sail problems is the build step. Depending on your network and machine power, it might take a while
to build the image locally.
You can remove the build step by using our Pre-built images.
| Tags | Description | Postgres-client |
|---|---|---|
8.0,8.0-20 | PHP 8.0, Node 20 | 15 |
8.0-18 | PHP 8.0, Node 18 | 15 |
8.1,8.1-20 | PHP 8.1, Node 20 | 15 |
8.1-18 | PHP 8.1, Node 18 | 15 |
8.2,8.2-20 | PHP 8.2, Node 20 | 15 |
8.2-18 | PHP 8.2, Node 18 | 15 |
8.3,8.3-20 | PHP 8.3, Node 20 | 16 |
8.3-18 | PHP 8.3, Node 18 | 16 |
After installing laravel-sail you must remove the build step:
services:
laravel.test:
- build:
- context: ./vendor/laravel/sail/runtimes/8.2
- dockerfile: Dockerfile
- args:
- WWWGROUP: '${WWWGROUP}'
image: sail-8.2/app
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
Then you need to change the image to ariaieboy/sail-runtime-image:version the version can be 7.4,8.0,8.1,8.2:
services:
laravel.test:
+ image: ariaieboy/sail-runtime-image:8.2
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
+ WEBSERVER: cli
+ WWWGROUP: '${WWWGROUP}'
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
The final laravel.test service should look like this:
services:
laravel.test:
image: ariaieboy/sail-runtime-image:8.2
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
WEBSERVER: cli
WWWUSER: '${WWWUSER}'
WWWGROUP: '${WWWGROUP}'
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
volumes:
- '.:/var/www/html'
networks:
- sail
Our images support 3 Separate web server that you can choose from by setting the environment value of WEBSERVER in
your laravel service in the docker-compose file:
cli (default)This option uses the default php artisan serve supervisor conf from the laravel-sail repo.
octaneThis option uses php artisan octane:serve and will serve your application using octane instead of the
built-in php artisan serve
octane-watchThis option uses octane webserver with --watch option.
libavif-bin pnpm svgo libheif-dev jpegoptim optipng pngquant gifsiclelaravel-sail if you want to customize it you need to build another image based on our
images and build that image.For updating the image you only need to run sail pull and restart your containers.
Copyright © AriaieBOY
Sail Runtime Image is open-sourced software licensed under the MIT license.
Content type
Image
Digest
sha256:360525f1e…
Size
263.8 MB
Last updated
about 1 month ago
docker pull ariaieboy/sail-runtime-image:8.4-24-alpine