mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-24 23:08:38 +01:00
4e9f76768c
This commit loads dotenv `.env` (exactly that name) from the following location (the later takes precedence): - The `.env` file in the Compose file's directory. - The `.env` file in the current working directory (invoking podman-compose). This preserves the behavior prior to 1.1.0 and to match with Docker Compose CLI. Fix: https://github.com/containers/podman-compose/issues/937 Signed-off-by: Genzer <732937+Genzer@users.noreply.github.com>
12 lines
215 B
YAML
12 lines
215 B
YAML
services:
|
|
app:
|
|
image: busybox
|
|
command: ["/bin/busybox", "sh", "-c", "env | grep ZZ"]
|
|
tmpfs:
|
|
- /run
|
|
- /tmp
|
|
environment:
|
|
ZZVAR1: $ZZVAR1
|
|
ZZVAR2: $ZZVAR2
|
|
ZZVAR3: $ZZVAR3
|