Generalization of the extension fields
This commit is contained in:
parent
df5d0006a3
commit
d074d90245
@ -1,11 +1,15 @@
|
||||
# Extension fields for avoid repetitions inside compose files.
|
||||
x-logging:
|
||||
&default-logging
|
||||
driver: local
|
||||
driver: syslog
|
||||
options:
|
||||
max-size: "1m"
|
||||
max-file: "50"
|
||||
# This requires two files in /etc/rsyslog.d
|
||||
# https://www.loggly.com/use-cases/docker-syslog-logging-and-troubleshooting/
|
||||
tag: "container_name/{{.Name}}"
|
||||
labels: "${hostname}"
|
||||
syslog-facility: # cron, local7, etc.
|
||||
|
||||
# Can be removed if not needed
|
||||
x-opt-values:
|
||||
&volume-opt
|
||||
driver_opts: &options
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user