Home Explore Blog CI



docker

content/includes/compose/services-environment.md
d945df68351c77077bd6f545d9d015af92877f5cc1ecda42000000030000010d
The `environment` attribute defines environment variables set in the container. `environment` can use either an array or a
map. Any boolean values; true, false, yes, no, should be enclosed in quotes to ensure
they are not converted to True or False by the YAML parser.

Chunks
08066241 (1st chunk of `content/includes/compose/services-environment.md`)
Title: Defining Environment Variables in Containers
Summary
The `environment` attribute is used to specify environment variables within a container. It accepts either an array or a map format. Boolean values (true, false, yes, no) should be enclosed in quotes to prevent misinterpretation by the YAML parser.