Set Docker environment variables in a Dockerfile, and override them using Docker CLI and Docker Compose by following this easy tutorial.