This repository provides pre-built Docker images for Laravel Sail, simplifying the setup of Laravel's Docker-based development environment.
docker run --rm \
-v $(pwd):/var/www/html \
-w /var/www/html \
-e SUPERVISOR_PHP_USER=root \
ghcr.io/devactif/sail-8.4:master \
bash -c "
cp .env.example .env &&
composer install &&
npm install &&
php artisan key:generate &&
php artisan migrate
"services:
laravel.test:
image: ghcr.io/devactif/sail-8.4:master
ports:
- "80:80"
volumes:
- ".:/var/www/html"
environment:
WWWUSER: "${WWWUSER}"
LARAVEL_SAIL: 1
XDEBUG_MODE: "${SAIL_XDEBUG_MODE:-off}"
XDEBUG_CONFIG: "${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}"
IGNITION_LOCAL_SITES_PATH: "${PWD}"
PHP_CLI_SERVER_WORKERS: "2"
networks:
- sail
depends_on:
- mariadb