Skip to content

Commit

Permalink
Add sail
Browse files Browse the repository at this point in the history
  • Loading branch information
Headscracher committed Feb 5, 2024
1 parent 9822dc8 commit d5e272c
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 18 deletions.
33 changes: 15 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,25 @@
],
"license": "MIT",
"require": {
"php": "^7.4.8",
"php": "^8.3",
"ext-json": "*",
"doctrine/dbal": "^2.11",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/dusk": "^6.8",
"laravel/framework": "^8.0",
"laravel/jetstream": "^1.2",
"laravel/sanctum": "^2.6",
"laravel/tinker": "^2.0",
"doctrine/dbal": "^3.8.1",
"guzzlehttp/guzzle": "^7.8.1",
"laravel/dusk": "^7.12",
"laravel/framework": "^10.0",
"laravel/jetstream": "^4.2",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.9",
"laravelcollective/html": "^6.2",
"livewire/livewire": "^2.0"
"livewire/livewire": "^3.4"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"barryvdh/laravel-ide-helper": "^2.8",
"facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3"
"barryvdh/laravel-ide-helper": "^2.14",
"fakerphp/faker": "^1.23.1",
"mockery/mockery": "^1.6.7",
"nunomaduro/collision": "^7.10",
"phpunit/phpunit": "^11.0",
"roave/security-advisories": "dev-master"
},
"config": {
"optimize-autoloader": true,
Expand Down
58 changes: 58 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# For more information: https://laravel.com/docs/sail
version: '3'
services:
laravel.test:
build:
context: ./vendor/laravel/sail/runtime/8.3
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.3/app
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
environment:
WWWUSER: '${WWWUSER}'
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
depends_on:
- mariadb
mariadb:
image: 'mariadb:10.11'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- 'sail-mariadb-dailydozen:/var/lib/mysql'
networks:
- sail
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
retries: 3
timeout: 5s

mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '${FORWARD_MAILHOG_PORT:-1025}:1025'
- '${FORWARD_MAILHOG_DASHBOARD_PORT:-8025}:8025'
networks:
- sail
networks:
sail:
driver: bridge
volumes:
sail-mariadb-dailydozen:
driver: local

0 comments on commit d5e272c

Please sign in to comment.