Skip to content

DevActif/laravel-sail-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Sail Images

This repository provides pre-built Docker images for Laravel Sail, simplifying the setup of Laravel's Docker-based development environment.

Command Line Example

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
    "

Docker Compose Example

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages