Docker · Directive
ENV
A Docker Compose service defines how to create and run one kind of container. Services are declared under the required top-level services map and can configure images, builds, ports, environment variables, dependencies, and storage.
Last updated
Syntax
services:
SERVICE_NAME:
image: IMAGE
# other service optionsIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
buildcommandconfigsdepends_onentrypointenvironmentenv_fileexpose