First iteration of a compose template file

Template file to keep all the compose files with a similar
structure to better keep track of changes and such.
This commit is contained in:
Davide 2023-03-21 22:51:55 +01:00
parent d074d90245
commit 512bd3e137

53
compose-template.yml Normal file
View File

@ -0,0 +1,53 @@
---
x-logging:
&default-logging
driver: syslog
options:
tag: "container_name/{{.Name}}"
labels: "q920"
syslog-facility: local7
x-opt-values:
&volume-opt
driver_opts: &options
type: "nfs"
o: "addr=${IP},rw"
services:
service-name:
image:
container_name:
depends_on:
hostname:
labels:
restart:
cap_add:
-
security_opt:
-
command:
-
environment:
X: ${X}
env_file:
-
ports:
- ""
volumes:
-
networks:
-
ulimits:
logging: *default-logging
volumes:
volume:
<<: *volume-opt
driver_opts:
<<: *options
device: ":/mnt/path"
networks:
network:
name: network_name
external: true