-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define ENV vars in Dockerfile #5
Comments
@dantownsend I didn't understand how to add sensitive information as |
@sinisaos When running a container in production, all of the platforms for running containers (e.g. Kubernetes, Amazon ECS) let you inject secrets as environment variables in some way. These secrets are for Docker Swarm, just one way of running containers in production. I wouldn't concern yourself with these. So I wouldn't worry about it. From our perspective, secrets are just environment variables, like any others. If running it locally, then you can pass the secrets in via the command line like |
@dantownsend I see. Thanks for explanation. I'm sorry, but I've never had a chance to get a job as a professional developer so I don't know how things really work in real production environments, so I'll leave it up to you if that's not a problem. Thanks. |
@sinisaos No problem - you've done a great job. I've been really into Docker for a super long time, which is why I'm mentioning these things, but it's mostly small details. |
@dantownsend Great. Thanks |
There is an example .env file, but it's best define the environment variables in the Dockerfile too. They can have default values.
For example
The text was updated successfully, but these errors were encountered: