brouter-web/docker-compose.yml
Marcus Jaschen 3d4713a701 Update Docker configs
This commit updates the Dockerfile so that the image is built on top of the nodejs Long-term support (LTS) version. Manually bumping the nodejs version is no longer required.

Additionally, the ports definition in docker-compose.yml is quoted as string, as suggested in the reference documentation.
2021-11-21 10:34:05 +01:00

23 lines
501 B
YAML

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