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
| Flag | Description |
|---|---|
--interpolate | Show variables’ values, from .env and the environment, instead of the variables. |
--networks | List the networks, one a line. |
-q, --quiet | Only check the file; print nothing. |
--services | List the services, one a line. |
--volumes | List the volumes, one a line. |
Global flags
| Flag | Description |
|---|---|
-D, --debug | Trace every call to the daemon on stderr (or set $DICER_DEBUG). |
-r, --remote string | Daemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local). |
--timeout duration | Give up on a call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded). |