chore: Docker configuration for dev
This commit is contained in:
parent
0274ccd58a
commit
5903782d85
8
Makefile
Normal file
8
Makefile
Normal 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
9
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user