I try to add environment variable that has regex value
version: "2.3"
services:
...
php:
...
environment:
- "CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$"
when run docker-compose up
it gives me that error:
ERROR: Invalid interpolation format for "environment" option in service "php": "CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$"
I have played around and removed $
, it works fine but want to keep it.
Any idea?