Set environment variable with same value but different name #167
Replies: 3 comments
-
👋 Where are you talking about putting these ENV's? A Dockerfile, docker-compose file, Swarm Stack, or? |
Beta Was this translation helpful? Give feedback.
-
My typical use case is to place the vars in a .env file for local development then use those with env_file property in the compose file and in a production environment using Swarm secrets. |
Beta Was this translation helpful? Give feedback.
-
Only docker-compose cli supports .env files. You'd need to export those manually to shell before Swarm stack deploy would pick them up. |
Beta Was this translation helpful? Give feedback.
-
Hi Bret!
It's possible to set 2 env var with the same value but different name?
example:
Thanks!
By the way! Your docker nodejs course is AWESOME!
Beta Was this translation helpful? Give feedback.
All reactions