Skip to content

dicer compose config

Checks the compose file, and shows it as dicer compose reads it: with its anchors expanded and its x- extensions left out. It does not talk to the daemon.

Variables are shown as they are written, ${DB_PASSWORD}, so that the output can be shared without the values in .env or the environment: they are still substituted to check the file. --interpolate shows the values.

Usage

$ dicer compose config [flags]

Examples

$ dicer compose config
$ dicer compose config --interpolate
$ dicer compose config --services
$ dicer compose -f staging.yaml config -q && echo valid

Flags

FlagDescription
--interpolateShow variables’ values, from .env and the environment, instead of the variables.
--networksList the networks, one a line.
-q, --quietOnly check the file; print nothing.
--servicesList the services, one a line.
--volumesList the volumes, one a line.

Global flags

FlagDescription
-D, --debugTrace every call to the daemon on stderr (or set $DICER_DEBUG).
-r, --remote stringDaemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local).
--request-timeout durationGive up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded).