Aggiunta compose come formato per yaml.

This commit is contained in:
Emiliano Vavassori 2023-06-16 14:08:33 +02:00
parent 4668506ec5
commit 92536ac5e8

View File

@ -39,3 +39,18 @@ snippet shellpipe "Creates a task with module shell and which supports pipes." b
args: args:
executable: /bin/bash executable: /bin/bash
endsnippet 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