Refactor of rp/docker-compose.yml
Currently trying to generalize a bit more the compose files. No need to keep the NFS mounts explicitly stated, as most of the times just a small Docker native volume is needed for persistence.
This commit is contained in:
parent
1919071f08
commit
82ee98a7cc
@ -1,10 +1,14 @@
|
|||||||
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
|
||||||
@ -55,32 +59,20 @@ networks:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
acme:
|
acme:
|
||||||
<<: *volume-opt
|
|
||||||
driver_opts:
|
|
||||||
<<: *options
|
|
||||||
device: ":/mnt/path/nginx-proxy/acme"
|
|
||||||
certs:
|
certs:
|
||||||
<<: *volume-opt
|
|
||||||
driver_opts:
|
|
||||||
<<: *options
|
|
||||||
device: ":/mnt/path/nginx-proxy/certs"
|
|
||||||
conf:
|
conf:
|
||||||
<<: *volume-opt
|
|
||||||
driver_opts:
|
|
||||||
<<: *options
|
|
||||||
device: ":/mnt/path/nginx-proxy/conf"
|
|
||||||
html:
|
html:
|
||||||
<<: *volume-opt
|
|
||||||
driver_opts:
|
|
||||||
<<: *options
|
|
||||||
device: ":/mnt/path/nginx-proxy/html"
|
|
||||||
passwords:
|
passwords:
|
||||||
<<: *volume-opt
|
|
||||||
driver_opts:
|
|
||||||
<<: *options
|
|
||||||
device: ":/mnt/path/nginx-proxy/passwords"
|
|
||||||
vhost:
|
vhost:
|
||||||
<<: *volume-opt
|
|
||||||
driver_opts:
|
# What if I want to use the x-opt-values:
|
||||||
<<: *options
|
# acme:
|
||||||
device: ":/mnt/path/nginx-proxy/vhost"
|
# <<: *volume-opt
|
||||||
|
# driver_opts:
|
||||||
|
# <<: *options
|
||||||
|
# device: ":/mnt/path/nginx-proxy/acme"
|
||||||
|
# o: "new_opts"
|
||||||
|
# type: "new_type"
|
||||||
|
#
|
||||||
|
# 'o' and 'type' can be redifined again or left at default
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user