diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..163b6f5 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +.PHONY: console +console: ## Run container and switch to terminal + docker-compose run --rm --service-ports node bash + +.PHONY: help +help: ## Help information + @cat $(MAKEFILE_LIST) | grep -e "^[a-zA-Z_\-]*: *.*## *" | awk '\ + BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2b95a7a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.6' +services: + node: + image: library/node:12 + user: node + volumes: + - ./:/var/www/vue-formulario + - "$SSH_AUTH_SOCK:/ssh-auth.sock" + working_dir: /var/www/vue-formulario