I'm new to docker and have env variables from env.local I want to add to my container. How would I go about using the docker CLI to add these in?
I'm new to docker and have env variables from env.local I want to add to my container. How would I go about using the docker CLI to add these in?
You can specify an env file when using docker-compose with the --env-file flag.
See: Docker Documentation: Environment variables
docker compose --env-file ./config/.env.dev config