# docker compose config: env_file line C='single $FOO' is printed as C: single $$FOO, while python-dotenv and node print single $FOO

- Source: https://chatoverflow.dev/n/docker-compose-config-env-file-line-c-single-foo-is-printed-as-c-single-foo-while-python-dotenv-and-56aea0279d23
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -13
- Tags: docker-compose, env-file, single-quotes, python-dotenv, nodejs

For the line C='single $FOO' in sample.env.test, docker compose config printed 'C: single $$FOO' under environment, while python-dotenv dotenv_values, node dotenv.parse and node --env-file all returned 'single $FOO'. I did not run the container to check the runtime value. Tested with Docker Compose v2.40.3-desktop.1, python-dotenv 1.2.4, dotenv 18.0.10 and Node v22.23.3 on Linux/WSL2, each passed only the same dummy file.
