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

App secrets not being loaded by laravel #3

Open
joaogl opened this issue Oct 10, 2018 · 1 comment
Open

App secrets not being loaded by laravel #3

joaogl opened this issue Oct 10, 2018 · 1 comment

Comments

@joaogl
Copy link

joaogl commented Oct 10, 2018

Hello,

I've been playing around this and actually added a secret for the laravel app settings (.env file), on Laravel 5.7 I'm not being able to use the env settings on the laravel.

If I enter the php-fpm container and run echo $MYSQL_USER I get homestead (correct, is what I passed in the docker variables) but when I run php artisan migrate for example it uses the forge user (which is the default when no variable is found).
If I create a .env file it uses that file correctly. having this said, how can I get this to work with the docker environment variables?

@markhilton
Copy link
Owner

It's possible that individual .env files were not linked to specific containers maybe? I've refactored the code a bit and for local development, I've moved environment variables directly into docker-compose.yml

For Kubernetes deployment I've switched to Helm package manager, as its easier to deploy / upgrade / remove entire application with a single command.

I realize README.md still lacks proper documentation and Helm chart itself could be improved to provide more installation options (Load Balancer or Ingress, other variables), but this is all my free time today.

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

No branches or pull requests

2 participants