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.
|
# Extension fields for avoid repetitions inside compose files.
|
||||||
x-logging:
|
x-logging:
|
||||||
&default-logging
|
&default-logging
|
||||||
driver: local
|
driver: syslog
|
||||||
options:
|
options:
|
||||||
max-size: "1m"
|
# This requires two files in /etc/rsyslog.d
|
||||||
max-file: "50"
|
# 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:
|
x-opt-values:
|
||||||
&volume-opt
|
&volume-opt
|
||||||
driver_opts: &options
|
driver_opts: &options
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user