Skip to content

Commit

Permalink
Merge pull request #17 from pinkary-project/feature/laravel-sail
Browse files Browse the repository at this point in the history
Add support for laravel/sail
  • Loading branch information
nunomaduro authored Mar 21, 2024
2 parents 1685406 + d9875ce commit cfbf917
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"larastan/larastan": "^2.9.2",
"laravel/pint": "dev-feat/blade",
"mockery/mockery": "^1.6.11",
"laravel/sail": "^1.29",
"nunomaduro/collision": "^8.1.1",
"pestphp/pest": "^2.34.4",
"pestphp/pest-plugin-laravel": "^2.3.0",
Expand Down
136 changes: 135 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
services:
laravel.test:
build:
context: ./vendor/laravel/sail/runtimes/8.3
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.3/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}'
IGNITION_LOCAL_SITES_PATH: '${PWD}'
volumes:
- '.:/var/www/html'
networks:
- sail
depends_on: { }
networks:
sail:
driver: bridge

0 comments on commit cfbf917

Please sign in to comment.