Are .env files supported? #57
Replies: 7 comments 24 replies
-
I'm also using |
Beta Was this translation helpful? Give feedback.
-
For example:
|
Beta Was this translation helpful? Give feedback.
-
Where did you put your .env file? As long as you set the stacks path correctly, dockge's deploy/start are just like a normal "docker compose up". Correct stacks path related discussion: |
Beta Was this translation helpful? Give feedback.
-
Does Dockge support editing .env files through the UI? |
Beta Was this translation helpful? Give feedback.
-
Heres an example for one of the stacks folder: |
Beta Was this translation helpful? Give feedback.
-
I've done some work on this path thing, and I do think the docs are correct. I'll show my 'dockge.yml' and my 'dozzle2.yml' and '.env', I know the dozzle2 example is simple, but it works fine and shows the logs for my 25+ containers. From within Dockge, the 'compose.yml' file is saved in my stacks folder, in the dir 'dozzle2', I also saved the '.env' file in my stacks dir/dozzle2. Clicked save and start and up comes dozzle2 with no errors and as I said, shows all my container logs. `
|
Beta Was this translation helpful? Give feedback.
-
To add, it looks like if I use the .env for variables like image name (e.g., |
Beta Was this translation helpful? Give feedback.
-
Im using .env file for all my stacks, and all of them report missing vars:
WARN[0000] The "DOCKER_STORAGE_PATH" variable is not set. Defaulting to a blank string.
WARN[0000] The "DOCKER_NETWORK" variable is not set. Defaulting to a blank string.
WARN[0000] The "SERVER_DOMAIN" variable is not set. Defaulting to a blank string.
WARN[0000] The "SERVER_DOMAIN" variable is not set. Defaulting to a blank string.
WARN[0000] The "DOCKER_NETWORK" variable is not set. Defaulting to a blank string.
Beta Was this translation helpful? Give feedback.
All reactions