podman-compose/tests/integration/env-tests/container-compose.yml
Songmin Li b5eaf314ad Support variable substitution with service's environment
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>
2024-07-27 00:04:06 +03:00

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