podman-compose/tests/integration/env-tests/container-compose.yml
Ruben Jenster 170411de8b test/integration: Test COMPOSE_PROJECT_NAME interpolation
Refs #1073

Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de>
2025-03-20 12:07:01 +01:00

19 lines
331 B
YAML

version: "3"
name: my-project-name
services:
env-test:
image: busybox
command: sh -c "export | grep ZZ"
environment:
ZZVAR1: myval1
ZZVAR2: 2-$ZZVAR1
ZZVAR3: 3-$ZZVAR2
project-name-test:
image: busybox
command: sh -c "echo $$PNAME"
environment:
PNAME: ${COMPOSE_PROJECT_NAME}