mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-03 05:14:22 +01:00
b5eaf314ad
This commit introduces the ability to substitute environment variables within the 'environment' section of the service definition. This allows for more dynamic configuration of services. Signed-off-by: Songmin Li <lisongmin@protonmail.com>
11 lines
179 B
YAML
11 lines
179 B
YAML
version: "3"
|
|
|
|
services:
|
|
env-test:
|
|
image: busybox
|
|
command: sh -c "export | grep ZZ"
|
|
environment:
|
|
ZZVAR1: myval1
|
|
ZZVAR2: 2-$ZZVAR1
|
|
ZZVAR3: 3-$ZZVAR2
|