Home Explore Blog CI



docker

1st chunk of `content/includes/compose/services-environment.md`
08066241b1c7724b9922975c0f6edc994129b438eafdd108000000010000010d
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.

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.