mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-29 03:15:06 +01:00
8d0dd214ae
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
15 lines
566 B
YAML
15 lines
566 B
YAML
version: "3.7"
|
|
services:
|
|
variables:
|
|
image: busybox
|
|
command: ["/bin/busybox", "sh", "-c", "export | grep EXAMPLE"]
|
|
environment:
|
|
EXAMPLE_VARIABLE: "Host user: $EXAMPLE_VARIABLE_USER"
|
|
EXAMPLE_BRACES: "Host user: ${EXAMPLE_VARIABLE_USER}"
|
|
EXAMPLE_COLON_DASH_DEFAULT: ${NOT_A_VARIABLE:-My default}
|
|
EXAMPLE_DASH_DEFAULT: ${NOT_A_VARIABLE-My other default}
|
|
EXAMPLE_DOT_ENV: $DOT_ENV_VARIABLE
|
|
EXAMPLE_LITERAL: This is a $$literal
|
|
EXAMPLE_EMPTY: $NOT_A_VARIABLE
|
|
|