Updated template and reading the configuration from environment