I have an issue with a string in my environment variables, where the string contains '$', which is interpreted as a variable.
My key in my docker compose looks like:
version: '3.9'
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/code
network_mode: "host"
restart: on-failure
environment:
SECRET: "f(Tfdsgd7@fibk$EBE"
As you can see my secret contains $EBE (fake secret for example), which is interpreted when I run docker-compose docker-compose.yaml build
as a variable instead of a string.
WARNING: The EBE variable is not set. Defaulting to a blank string.
How can I make sure the secret is entirely intepreted as a string?