mstdmstdd Posted December 19, 2018 Share Posted December 19, 2018 Hello, I have small docker(version: '3.1') project with laravel 5 app I have file .env where some path vars are set abd in docker-compose.yml these vars are set. Looks like .env is config file by default and I would like to change name of this config file, as my laravel app also has .env file and that raise some confusion in the project. If there is a way to rename .env of docker project and where such option can be set ? Thanks! Quote Link to comment Share on other sites More sharing options...
gizmola Posted December 19, 2018 Share Posted December 19, 2018 Not that I'm aware of. With that said, docker only uses the .env file to set variables that are used during the docker-compose pre-processing stage. You also might be well advised to have some directory structure where your laravel app code is not in the root of the project where it would conflict with docker files. I would also suggest taking a look at how Laradock does things. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.