Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make app service user configurable, as well as db service names #44

Closed

Conversation

WaveHack
Copy link
Contributor

@WaveHack WaveHack commented Jan 24, 2021

This PR will add the following env vars to be used in bin/sail:

  • APP_USER (default 'sail')
  • MYSQL_SERVICE (default 'mysql')
  • PGSQL_SERVICE (default 'pgsql')

Context:

I work with an existing Docker Compose setup, which was created before Laravel Sail came out.

However, Sail is a great tool to wrap around docker-compose regardless, and this PR with minor, non-breaking changes will better support Docker Compose configurations with different DB service names and the username for the service where you run your CLI tools in.

In my case I use MariaDB (container named 'mariadb'), and I have a separate workspace container where I usually bash into (as user 'user') and run my commands from.

@taylorotwell
Copy link
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!

If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

WaveHack added a commit to WaveHack/sail that referenced this pull request Feb 13, 2021
@WaveHack WaveHack deleted the feature/more-container-configuration branch February 13, 2021 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants