Upgrade Sail

Now with Xdebug support!!
This commit is contained in:
Christopher C. Wells 2021-09-06 14:09:22 -07:00
parent 6a0f6ae17d
commit 44110984e2
4 changed files with 27 additions and 11 deletions

View File

@ -52,6 +52,12 @@ QUEUE_CONVERSIONS_BY_DEFAULT=false
#AWS_DEFAULT_REGION= #AWS_DEFAULT_REGION=
#AWS_BUCKET= #AWS_BUCKET=
#
# Sail (local development).
#
#SAIL_XDEBUG_MODE=develop,debug
# #
# Misc. drivers and configuration. # Misc. drivers and configuration.
# #

View File

@ -35,7 +35,7 @@
"facade/ignition": "^2.5", "facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1", "fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.0", "laravel/breeze": "^1.0",
"laravel/sail": "^0.0.5", "laravel/sail": "^1.10",
"mockery/mockery": "^1.4.2", "mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0", "nunomaduro/collision": "^5.0",
"nunomaduro/larastan": "^0.6.13", "nunomaduro/larastan": "^0.6.13",

13
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "120e3fc90df7558d98551448b10475d0", "content-hash": "d439d0b8ef963ec97130782e7092153d",
"packages": [ "packages": [
{ {
"name": "algolia/algoliasearch-client-php", "name": "algolia/algoliasearch-client-php",
@ -9506,19 +9506,20 @@
}, },
{ {
"name": "laravel/sail", "name": "laravel/sail",
"version": "v0.0.5", "version": "v1.10.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/sail.git", "url": "https://github.com/laravel/sail.git",
"reference": "d9b0575ece889a35b9741789452c1c7abca5bc2f" "reference": "267fafeaf0e0311952316ae0f3c765abc7516469"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/d9b0575ece889a35b9741789452c1c7abca5bc2f", "url": "https://api.github.com/repos/laravel/sail/zipball/267fafeaf0e0311952316ae0f3c765abc7516469",
"reference": "d9b0575ece889a35b9741789452c1c7abca5bc2f", "reference": "267fafeaf0e0311952316ae0f3c765abc7516469",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"illuminate/console": "^8.0|^9.0",
"illuminate/contracts": "^8.0|^9.0", "illuminate/contracts": "^8.0|^9.0",
"illuminate/support": "^8.0|^9.0", "illuminate/support": "^8.0|^9.0",
"php": "^7.3|^8.0" "php": "^7.3|^8.0"
@ -9561,7 +9562,7 @@
"issues": "https://github.com/laravel/sail/issues", "issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail" "source": "https://github.com/laravel/sail"
}, },
"time": "2020-12-07T20:58:56+00:00" "time": "2021-08-23T13:43:27+00:00"
}, },
{ {
"name": "mockery/mockery", "name": "mockery/mockery",

View File

@ -8,11 +8,15 @@ services:
args: args:
WWWGROUP: '${WWWGROUP}' WWWGROUP: '${WWWGROUP}'
image: sail-8.0/app image: sail-8.0/app
extra_hosts:
- 'host.docker.internal:host-gateway'
ports: ports:
- '${APP_PORT:-8080}:80' - '${APP_PORT:-8080}:80'
environment: environment:
WWWUSER: '${WWWUSER}' WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1 LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
volumes: volumes:
- '.:/var/www/html' - '.:/var/www/html'
networks: networks:
@ -24,7 +28,7 @@ services:
db: db:
image: 'mysql:8.0' image: 'mysql:8.0'
ports: ports:
- '${DB_PORT:-3306}:3306' - '${FORWARD_DB_PORT:-3306}:3306'
environment: environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-kcal}' MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-kcal}'
MYSQL_DATABASE: '${DB_DATABASE:-kcal}' MYSQL_DATABASE: '${DB_DATABASE:-kcal}'
@ -32,9 +36,13 @@ services:
MYSQL_PASSWORD: '${DB_PASSWORD:-kcal}' MYSQL_PASSWORD: '${DB_PASSWORD:-kcal}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes: volumes:
- 'mysql-data:/var/lib/mysql' - 'db-data:/var/lib/mysql'
networks: networks:
- sail - sail
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
retries: 3
timeout: 5s
phpmyadmin: phpmyadmin:
image: phpmyadmin image: phpmyadmin
ports: ports:
@ -47,7 +55,7 @@ services:
depends_on: depends_on:
- db - db
elasticsearch: elasticsearch:
image: 'elasticsearch:7.12.0' image: 'elasticsearch:7.14.1'
environment: environment:
- xpack.security.enabled=false - xpack.security.enabled=false
- discovery.type=single-node - discovery.type=single-node
@ -64,6 +72,7 @@ services:
- 'elasticsearch-data:/usr/share/elasticsearch/data' - 'elasticsearch-data:/usr/share/elasticsearch/data'
ports: ports:
- '${ELASTIC_PORT:-9200}:9200' - '${ELASTIC_PORT:-9200}:9200'
- '${ELASTIC_BIN_PORT:-9300}:9300'
networks: networks:
- sail - sail
redis: redis:
@ -80,7 +89,7 @@ networks:
volumes: volumes:
elasticsearch-data: elasticsearch-data:
driver: local driver: local
mysql-data: db-data:
driver: local driver: local
redis-data: redis-data:
driver: local driver: local