add docker-compose tasks for development

This commit is contained in:
Michael Scherer 2020-06-08 15:11:56 +02:00
parent bed388df40
commit 11917dc7ee
2 changed files with 43 additions and 6 deletions

23
docker-compose.yml Normal file
View file

@ -0,0 +1,23 @@
version: '3'
services:
## usage: docker-compose run --rm serve
## : docker-compose up (-d) serve
serve:
command: yarn serve
image: node:lts
ports:
- 3000:3000
user: '1000'
volumes:
- ./:/src
working_dir: /src
## usage: docker-compose run --rm install
install:
command: yarn install
image: node:lts
user: '1000'
volumes:
- ./:/src
working_dir: /src