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