Closed
Description
Sail Version
1.27.0
Laravel Version
10.40.0
PHP Version
8.2
Operating System
Linux
OS Version
Description
Using the latest docker compose plugin v2.24, using a dot in the service name will break the sail up -d
command.
Related issue: docker/compose#11336
The output shows when someone tries to sail up -d
:
5 error(s) decoding:
* 'services[laravel.test].depends_on' expected a map, got 'slice'
* 'services[laravel.test].networks' expected a map, got 'slice'
* 'services[laravel.test].ports[0]' expected a map, got 'string'
* 'services[laravel.test].ports[1]' expected a map, got 'string'
* 'services[laravel.test].volumes[0]' expected a map, got 'string'
Possible solutions could be using a default app name which does not contain a dot, or wait for a hotfix, but I think the former solution would be better.
Steps To Reproduce
Update to latest docker compose (2.24)
Call curl -s https://laravel.build/example-app | bash
to create a new Sail app