From 512bd3e137f5803b87ce242d336a0f87677dd770 Mon Sep 17 00:00:00 2001 From: Davide Date: Tue, 21 Mar 2023 22:51:55 +0100 Subject: [PATCH] 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. --- compose-template.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 compose-template.yml diff --git a/compose-template.yml b/compose-template.yml new file mode 100644 index 0000000..01f4585 --- /dev/null +++ b/compose-template.yml @@ -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