I have a YAML scalar that is throwing the following error when I try to evaluate my docker-compose.yml
file:
ERROR: Invalid interpolation format for "environment" option in service "time_service": "${Time.now}"
YAML:
---
version: '2'
services:
time_service:
build: "."
environment:
TIME: "${Time.now}"
How can I maintain the same string output as written, but avoid having the docker-compose interpret it as faulty string interpolation?