Jump to content

How to rename file .env of docker project ?

Recommended Posts

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 ?


Link to comment
Share on other sites

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.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.