1
0
mirror of synced 2024-11-22 05:16:05 +03:00

chore: Docker configuration for dev

This commit is contained in:
Zaytsev Kirill 2020-10-11 15:11:10 +03:00
parent 0274ccd58a
commit 5903782d85
2 changed files with 17 additions and 0 deletions

8
Makefile Normal file
View File

@ -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}'

9
docker-compose.yml Normal file
View File

@ -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