Jump to content
Sign in to follow this  

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 ?


Share this post

Link to post
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.

  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.