-
Notifications
You must be signed in to change notification settings - Fork 142
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
Issue with .env file inside docker #619
Comments
Indead, the file isn't touch in docker environment, we're using environnement variables only. Why do you need to change user inside the container? |
Is it still relevant with new SeAT 4 Docker image ? |
I don't know, i plan to do the v4 update but i haven't done yet, so i don't know, if nothing has been done to correct it, it don't think it's gone. i need to change the user, because it's better to run some commands as www-data than as root, because it could cause issues with file permissions since the webserver run with www-data. On multiple occasions, doing artisan commands as root has led to rooted logs, which cannot be overriden by webserver. |
Regardless of populating the .env file directly in the docker container.. I think that this is more a result of a misuse of
Instead of using Either way, can you confirm if this issue is ongoing for you in the seat 4 image? |
thanks, i will try with your command, i will keep you updated. |
How did you get on with this? Are you still encountering issues? |
Hello, sorry for not replying, now i'm using |
Hello i have an issue with .env file inside docker
.env file is not populated inside docker container and contain only default values for common laravel env variables.
.env file inside docker container reflects .env file used with docker-compose.yml
when switching to www-data, env was lost, and since .env file is not correct,
www-data user is not working, only root has correct env, set in user env.
Checking Local and Github Versions. Please wait...
+---------------+---------------+---------------+
| Package Name | Local Version | Latest Github |
+---------------+---------------+---------------+
| Api | 3.0.8 | 3.0.8 |
| Console | 3.0.5 | 3.0.5 |
| Eveapi | 3.0.20 | 3.0.20 |
| Notifications | 3.0.6 | 3.0.6 |
| Web | 3.0.28 | 3.0.28 |
| Services | 3.0.11 | 3.0.11 |
+---------------+---------------+---------------+
For now i've done a printenv > .env,
it works but i contain env variables out of scope, like php env variables,
and it's not escaped correctly, i had to manually correct it.
thanks.
nb : i have the issue with app image, but perhaps the others aswell.
The text was updated successfully, but these errors were encountered: