From 92536ac5e8e74b632d04ddfcbb2625028b61120c Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 16 Jun 2023 14:08:33 +0200 Subject: [PATCH] Aggiunta compose come formato per yaml. --- vim/UltiSnips/yaml.snippets | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/vim/UltiSnips/yaml.snippets b/vim/UltiSnips/yaml.snippets index 8864607..19cdabd 100644 --- a/vim/UltiSnips/yaml.snippets +++ b/vim/UltiSnips/yaml.snippets @@ -39,3 +39,18 @@ snippet shellpipe "Creates a task with module shell and which supports pipes." b args: executable: /bin/bash endsnippet + +snippet compose "Creates the skeleton of a docker-compose.yml file." b +--- +version: '3' + +services: + ${1:${VISUAL:container}}: + image: ${2:image} + container_name: $1 + restart: unless-stopped + environment: $0 + ports: + volumes: + networks: +endsnippet