Validate the Kamal configuration giving useful warning on errors. Each section of the configuration has its own config class and a YAML file containing documented example configuration. You can run `kamal docs` to see the example configuration, and `kamal docs <section>` to see the example configuration for a specific section. The validation matches the configuration to the example configuration checking that there are no unknown keys and that the values are of matching types. Where there is more complex validation - e.g for envs and servers, we have custom validators that implement those rules. Additonally the configuration examples are used to generate the configuration documentation in the kamal-site repo. You generate them by running: ``` bundle exec bin/docs <kamal-site-checkout> ```
22 lines
484 B
YAML
22 lines
484 B
YAML
# Custom logging configuration
|
|
#
|
|
# Set these to control the Docker logging driver and options.
|
|
|
|
# Logging settings
|
|
#
|
|
# These go under the logging key in the configuration file.
|
|
#
|
|
# This can be specified in the root level or for a specific role.
|
|
logging:
|
|
|
|
# Driver
|
|
#
|
|
# The logging driver to use, passed to Docker via `--log-driver`
|
|
driver: json-file
|
|
|
|
# Options
|
|
#
|
|
# Any logging options to pass to the driver, passed to Docker via `--log-opt`
|
|
options:
|
|
max-size: 100m
|