Replies: 1 comment 2 replies
-
Hi @jxs714 Have you read our docs around using environment variables with Portainer? In your case if you have the values defined in a .env file you can upload this into Portainer during your stack deployment and have the values manged via Portainers UI - https://docs.portainer.io/user/docker/stacks/add#option-1-web-editor |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ask a Question!
Hey guys,
I am sure this has been asked many times, but I couldn't find an actual 100% solution and response to fix it. Whenenever I create a docker compose template in portainer, i can never get the .env file to read. Here is my config:
When I try to run it i get this error
Failed to deploy a stack: failed to resolve services environment: env file /opt/FOLDERSFORDOCKERAPPS/DOCKERAPPNAME/.env not found: stat /opt/FOLDERSFORDOCKERAPPS/DOCKERAPPNAME/.env: no such file or directory
I am using the latest portainer: 2.27.1 LTS
This is a standalone app, not a swarm or group of apps. Is this the wrong way? Or is there a solution to this? Id like to create templates for apps so that I can easily install and update the apps in the future.
Beta Was this translation helpful? Give feedback.
All reactions