mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-03 03:39:04 +02:00
This commit allows compose file to directly use environment variable values in "environment:" section when variables were set in `.env` file. This functionality was missing, as docker-compose supports both: short and variable interpolation syntax forms: environment: - FOO and environment: - FOO=${FOO} Relevant docker-compose documentation: https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/ podman-compose is more compatible with docker-compose after this change. Signed-off-by: Monika Kairaityte <monika@kibit.lt>
4 lines
130 B
Bash
4 lines
130 B
Bash
ZZVAR1='This value is loaded but should be overwritten'
|
|
ZZVAR2='This value is loaded from .env in project/ directory'
|
|
ZZVAR3=TEST
|