Hi, Im trying meltano with docker as explained <he...
# getting-started
d
Hi, Im trying meltano with docker as explained here and Im trying to understand a bit more about manage my env variables, I have defined some sensitive vars in an .env file. Is there a way to read the variables defined in ".env" file from inside the docker container? Is there any other recommended approach to store/save these variables?
w
You should be able to use a Docker bind mount to mount the
.env
file into the container. So long as it's located within the Meltano project directory, Meltano will use it. https://docs.docker.com/storage/bind-mounts/
m
I believe you should also be able to pass
--env-file .env
as an argument to
docker run
to load the .env file contents into environment variables in the container.