Skip to content

Docker Composer filename conflicts with production file #756

Open
@DarkGhostHunter

Description

@DarkGhostHunter

Sail Version

1.38.0

Laravel Version

11.33.2

PHP Version

8.4.0

Operating System

Linux

OS Version

Fedora 41

Description

When using the DevContainer version of Laravel Sail, and publishing the docker-compose.yml file, this action will may collide with another production-ready Docker Compose file and replace it contents.

There should be an option to use a non-standard name for the docker-compose.yaml, like docker-compose.development.yml or docker-compose.sail.yml.

Steps To Reproduce

  1. Create a docker-compose.yml file with the contents DO NOT REPLACE.
  2. Execute php artisan sail:publish
  3. Check the contents of the docker-compose.yml - It gets replaced, which is wrong.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions