so reading the documentation i really don get where to put the enviroment variables, inn tht docker file? in the global enviroments inside the core plugin?, or im not finding the env file?
This just recently came up on Discord as well. There this screenshot was shared:
As such, in the docker-compose.yml
file you should be able to add an environment
section, along the lines of:
environment:
- "KEY": "VALUE"
- "OTHER_KEY": "OTHER_VALUE"
@martin.wacker elaborated there:
Add the environment variables to your
docker-compose.yml
(environment section if the server container).
The list of variables is here: Configuring email | AYON DocsYou may also use a
.env
file, to keep the actual values out of the docker-compose.yml, but you will still need to pass them to the container:
Ways to set environment variables with Compose | Docker Docs
2 Likes