mirror of
https://github.com/docker/compose.git
synced 2025-07-31 01:24:15 +02:00
14 lines
272 B
YAML
14 lines
272 B
YAML
version: "2.1"
|
|
|
|
services:
|
|
web:
|
|
# set value with default, default must be ignored
|
|
image: ${IMAGE:-alpine}
|
|
|
|
# unset value with default value
|
|
ports:
|
|
- "${HOST_PORT:-80}:8000"
|
|
|
|
# unset value with empty default
|
|
hostname: "host-${UNSET_VALUE:-}"
|