From 5903782d8538378c754052b92662169a2b5c89ec Mon Sep 17 00:00:00 2001 From: Zaytsev Kirill Date: Sun, 11 Oct 2020 15:11:10 +0300 Subject: [PATCH] chore: Docker configuration for dev --- Makefile | 8 ++++++++ docker-compose.yml | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 Makefile create mode 100644 docker-compose.yml 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