I have the following .env file:
# ENV
ENVIRONMENT=local
SITENAME=reo
I have the following docker-compose.yml (part of it) file:
volumes:
${SITENAME}-sync:
external: true
I get the following error:
volumes value '${SITENAME}-sync' does not match any of the regexes: u'^[a-zA-Z0-9._-]+$'
Is it possible to have a variable as a key in a Yaml file?
I noticed that: key: ${SITENAME}
does work.